Keep the app sidebar visible on the flashcards study screen
The study screen was still treated as a fullscreen immersive view (like the question player), hiding the main nav sidebar entirely. The mockup and the user's request both call for keeping the app's left menu while studying, with the deck panel living inside the screen alongside it.
This commit is contained in:
+2
-2
@@ -93,7 +93,7 @@ func show_screen(screen_name: String, payload: Variant = null) -> void:
|
||||
func _apply_screen_margins(screen_name: String) -> void:
|
||||
if screens_margin == null or screen_name.is_empty():
|
||||
return
|
||||
var is_fullscreen_study := screen_name in ["player", "flashcards_study"]
|
||||
var is_fullscreen_study := screen_name == "player"
|
||||
var margin := 0 if screen_name == "login" else (12 if is_fullscreen_study else (20 if compact_shell else 44))
|
||||
screens_margin.add_theme_constant_override("margin_left", margin)
|
||||
screens_margin.add_theme_constant_override("margin_right", margin)
|
||||
@@ -566,7 +566,7 @@ func _close_account_menu() -> void:
|
||||
|
||||
|
||||
func _screen_uses_shell(screen_name: String) -> bool:
|
||||
return AuthState.is_logged_in and screen_name not in ["login", "legal_consent", "player", "ccs_player", "flashcards_study"]
|
||||
return AuthState.is_logged_in and screen_name not in ["login", "legal_consent", "player", "ccs_player"]
|
||||
|
||||
|
||||
func _update_shell_visibility(screen_name: String) -> void:
|
||||
|
||||
Reference in New Issue
Block a user