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:
hz
2026-07-22 01:20:48 -05:00
parent 09b670d5d4
commit 3a01e9156c
+2 -2
View File
@@ -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: