设备 / Device:Android 16,ServerBox 1.0.1719
🇨🇳 中文
描述 Bug
横屏下,虚拟机页选中一台 PVE 虚拟机后点「控制台」,顶部视图切换栏(概览/控制台/硬件/快照/备份/设置)收缩成纯图标、文字消失;再切到其他视图也仍保持收缩。
复现步骤
- 横屏打开「虚拟机」,选中 PVE 主机和一台虚拟机(右侧详情面板)
- 点右侧「控制台」
- 顶部视图栏收缩为纯图标(图 1)
- 再点「概览/硬件」等,仍保持收缩(图 2 为正常状态)
期望结果:切换视图后恢复显示文字标签。
实际结果:进过一次控制台后标签就再也不显示。
更多信息(可能原因)
fl_lib 的 SegmentedTabs._onMeasured:带标签所需宽度 > 可用宽度即进入 _compact(只留图标),并记住当时的 _fullWidth,之后只有可用宽度 ≥ _fullWidth 才恢复标签。选中「控制台」时该段多出二级切换(终端/图形),行变宽 → 进入 compact;而 _fullWidth 大于当前可用宽度,所以切到其他视图也回不来。
🇬🇧 English
Describe the bug
In landscape, on the Virtualization tab, selecting a PVE guest and tapping Console collapses the view switcher above (Overview / Console / Hardware / Snapshots / Backup / Settings) into icons only. Switching to any other view keeps it collapsed.
To reproduce
- In landscape, open Virtualization and pick a PVE host and one guest (detail pane on the right)
- Tap Console
- The switcher collapses to icons only (screenshot 1)
- Tap Overview / Hardware etc. — it stays collapsed (screenshot 2 is normal)
Expected: the switcher shows its labels again after switching views.
Actual: once Console has been opened, the labels never come back.
Additional context (likely cause)
SegmentedTabs._onMeasured in fl_lib: when the width needed with labels exceeds the room it goes _compact (icons only) and remembers _fullWidth as the width needed at that moment; labels return only once the room is at least _fullWidth. Selecting Console adds its second level (Terminal/Graphical), widening the row → compact; that _fullWidth is wider than the current room, so other views never bring the labels back.
设备 / Device:Android 16,ServerBox 1.0.1719
🇨🇳 中文
描述 Bug
横屏下,虚拟机页选中一台 PVE 虚拟机后点「控制台」,顶部视图切换栏(概览/控制台/硬件/快照/备份/设置)收缩成纯图标、文字消失;再切到其他视图也仍保持收缩。
复现步骤
期望结果:切换视图后恢复显示文字标签。
实际结果:进过一次控制台后标签就再也不显示。
更多信息(可能原因)
fl_lib的SegmentedTabs._onMeasured:带标签所需宽度 > 可用宽度即进入_compact(只留图标),并记住当时的_fullWidth,之后只有可用宽度 ≥_fullWidth才恢复标签。选中「控制台」时该段多出二级切换(终端/图形),行变宽 → 进入 compact;而_fullWidth大于当前可用宽度,所以切到其他视图也回不来。🇬🇧 English
Describe the bug
In landscape, on the Virtualization tab, selecting a PVE guest and tapping Console collapses the view switcher above (Overview / Console / Hardware / Snapshots / Backup / Settings) into icons only. Switching to any other view keeps it collapsed.
To reproduce
Expected: the switcher shows its labels again after switching views.
Actual: once Console has been opened, the labels never come back.
Additional context (likely cause)
SegmentedTabs._onMeasuredinfl_lib: when the width needed with labels exceeds the room it goes_compact(icons only) and remembers_fullWidthas the width needed at that moment; labels return only once the room is at least_fullWidth. Selecting Console adds its second level (Terminal/Graphical), widening the row → compact; that_fullWidthis wider than the current room, so other views never bring the labels back.