diff --git a/windows/ConnectionSelectionSelfTest.cs b/windows/ConnectionSelectionSelfTest.cs index 44c1678..66c2b7f 100644 --- a/windows/ConnectionSelectionSelfTest.cs +++ b/windows/ConnectionSelectionSelfTest.cs @@ -118,9 +118,8 @@ internal sealed partial class MainForm var isWide = WideDashboardPresentation; var rowFits = _currentNodeLabel.Visible && _modeCard.ClientRectangle.Contains(_currentNodeLabel.Bounds) && _nodeHeading.Right <= _currentNodeLabel.Left - && (isWide - ? _currentNodeLabel.Right <= _modeIcon.Left && _routeReadOnly.Right <= _historyRangeCombo.Left - : _currentNodeLabel.Bottom <= _routeReadOnly.Top); + && _currentNodeLabel.Bottom <= _routeReadOnly.Top + && (!isWide || !_wideSummaryState.Visible || _currentNodeLabel.Right <= _wideSummaryState.Left); result["connected_node_does_not_overlap_mode_or_range_" + label] = rowFits; result["connected_node_name_fits_" + label] = _currentNodeLabel.Text == NodePresentation.JinanName && FitsNodeText(); allConnectedLayoutsFit &= rowFits && FitsNodeText(); diff --git a/windows/DashboardControls.cs b/windows/DashboardControls.cs index 04452ec..ee3f9f5 100644 --- a/windows/DashboardControls.cs +++ b/windows/DashboardControls.cs @@ -145,7 +145,7 @@ internal sealed class MetricCard : CardPanel using var divider = new Pen(Color.FromArgb(145, 148, 188, 218), Math.Max(1, s * .7f)); g.DrawLine(divider, 0, S(12), 0, Height - S(12)); using var heading = Brand.Font(10); - using var value = Brand.Font(Width < S(190) ? 13 : 17, FontStyle.Bold); + using var value = Brand.Font(12, FontStyle.Bold); var inlineFlags = ChartAxis.PaintFlags | TextFormatFlags.SingleLine | TextFormatFlags.VerticalCenter | TextFormatFlags.NoPadding | TextFormatFlags.EndEllipsis; var headingWidth = S(39); diff --git a/windows/DashboardInteractionSelfTest.cs b/windows/DashboardInteractionSelfTest.cs index 9428667..74c04b8 100644 --- a/windows/DashboardInteractionSelfTest.cs +++ b/windows/DashboardInteractionSelfTest.cs @@ -41,6 +41,21 @@ internal sealed partial class MainForm PerformLayout(); LayoutDashboard(); Application.DoEvents(); + checks["compact_chrome_has_only_minimize_caption"] = WindowChromeForTest is + { LoginMode: false, MinimizeButton.Action: CaptionAction.Minimize } + && _brandHeader.Controls.OfType().Count(button => button.Visible) == 1 + && !_brandHeader.Controls.OfType