Fix remaining web study mode artifacts
This commit is contained in:
@@ -27,6 +27,11 @@ func _run() -> void:
|
||||
_assert(card.custom_minimum_size.x == 0.0, "phone-width cards should release their desktop minimum width")
|
||||
for row in selector.responsive_card_rows:
|
||||
_assert(row.vertical, "phone-width card content should stack instead of clipping")
|
||||
_assert(selector.mode_view.find_children("*", "RichTextLabel", true, false).is_empty(), "study modes should not render the legacy rich-text simulation note")
|
||||
var dynamic_icon := selector.mode_view.find_child("DynamicQuestionsIcon", true, false) as TextureRect
|
||||
_assert(dynamic_icon != null, "dynamic questions should expose its mode icon")
|
||||
if dynamic_icon != null:
|
||||
_assert(dynamic_icon.texture.resource_path == "res://assets/icons/lucide/activity.svg", "dynamic questions should use a web-safe vector icon")
|
||||
|
||||
var main_screen = load("res://scripts/ui/main.gd").new()
|
||||
main_screen.size = host.size
|
||||
@@ -35,6 +40,7 @@ func _run() -> void:
|
||||
main_screen._update_responsive_layout()
|
||||
_assert(main_screen.theme_button.custom_minimum_size == Vector2(44, 44), "the theme toggle should keep a stable square footprint")
|
||||
_assert(main_screen.theme_button.size.x >= 44.0 and main_screen.theme_button.size.y >= 44.0, "the theme toggle should not collapse into an oval")
|
||||
_assert(main_screen.theme_button.icon_alignment == HORIZONTAL_ALIGNMENT_CENTER, "the theme toggle icon should remain centered")
|
||||
_assert(not main_screen.user_label.visible and not main_screen.account_chevron_button.visible, "nonessential account controls should collapse on phone-width headers")
|
||||
|
||||
host.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user