b93128ef by 柴进

fix(qml): 预览区放大 + AppState 加 QML_AUTO_LOGIN 调试模式

- 参考图 Card  preferredHeight 200 → 170
- 提示词+设置行 preferredHeight 320 → 290
- 预览 Card  minimumHeight 200 → 240(拿剩余空间,视觉更舒展)
- AppState: QML_AUTO_LOGIN=1 时默认登录态,调试时不必每次重启都过登录页

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c2b42c25
...@@ -24,7 +24,9 @@ class AppState(QObject): ...@@ -24,7 +24,9 @@ class AppState(QObject):
24 24
25 def __init__(self): 25 def __init__(self):
26 super().__init__() 26 super().__init__()
27 self._logged_in = False 27 # PoC 调试:QML_AUTO_LOGIN=1 时直接登录态,免每次重启进程都发回车登录
28 import os
29 self._logged_in = os.environ.get("QML_AUTO_LOGIN", "") == "1"
28 self._current_tab = 0 30 self._current_tab = 0
29 31
30 @Property(bool, notify=loggedInChanged) 32 @Property(bool, notify=loggedInChanged)
......
...@@ -13,8 +13,8 @@ Item { ...@@ -13,8 +13,8 @@ Item {
13 // ===== 参考图片卡片 ===== 13 // ===== 参考图片卡片 =====
14 Card { 14 Card {
15 Layout.fillWidth: true 15 Layout.fillWidth: true
16 Layout.preferredHeight: 200 16 Layout.preferredHeight: 170
17 Layout.minimumHeight: 180 17 Layout.minimumHeight: 160
18 18
19 ColumnLayout { 19 ColumnLayout {
20 anchors.fill: parent 20 anchors.fill: parent
...@@ -72,8 +72,8 @@ Item { ...@@ -72,8 +72,8 @@ Item {
72 RowLayout { 72 RowLayout {
73 spacing: App.Theme.space4 73 spacing: App.Theme.space4
74 Layout.fillWidth: true 74 Layout.fillWidth: true
75 Layout.preferredHeight: 320 75 Layout.preferredHeight: 290
76 Layout.minimumHeight: 320 76 Layout.minimumHeight: 280
77 77
78 // 提示词 78 // 提示词
79 Card { 79 Card {
...@@ -188,7 +188,7 @@ Item { ...@@ -188,7 +188,7 @@ Item {
188 Card { 188 Card {
189 Layout.fillWidth: true 189 Layout.fillWidth: true
190 Layout.fillHeight: true 190 Layout.fillHeight: true
191 Layout.minimumHeight: 200 191 Layout.minimumHeight: 240
192 192
193 ColumnLayout { 193 ColumnLayout {
194 anchors.fill: parent 194 anchors.fill: parent
......