fix(ui): set L control text to the body size

This commit is contained in:
Zakk committed 2026-10-03 19:42:58 +10:00
1 parent 0b0159390b
commit 272dde7bc8
4 files changed
+17 -18

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ This changelog follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
- The Activity latency card keeps its line with the same storage and retention as the CPU history, per selected group and node, so returning to the page or leaving the dashboard editor shows the line at once. A card that opens with fewer than two readings reads the node list once more five seconds after the first read, instead of waiting for the 30-second inventory poll. Changing the selection or switching sparklines off still starts the line over. The demo reads everything once more a second after it opens, so the CPU and latency lines draw within two seconds of a first visit.
- The Activity status card uses its feature summary as the View details link when features need attention, and shows only View details otherwise. Both lead to System status, without a separate summary control.
- Activity's control cards stack their labels above their controls when a label would be cut to an ellipsis on one line, so Global outbound always shows its full title. Its outbound picker is as wide as its longest outbound, so choosing another or applying it never moves the card's layout.
- Every segmented control is the large size, 40px tall on every screen, so the chart time range, the outbound mode switch, the ranking switch and the widget panel's choices match the page filters. The selected segment fills the control's height. Controls on the same row are 40px too: Apply beside the outbound mode, and the global outbound and status cards beside the outbound mode card on Activity. A row that no longer fits wraps as before, and a segmented control too wide for the widget panel turns into its picker.
- Every segmented control is the large size, 40px tall on every screen, so the chart time range, the outbound mode switch, the ranking switch and the widget panel's choices match the page filters. The selected segment fills the control's height. Controls on the same row are 40px too: Apply beside the outbound mode, and the global outbound and status cards beside the outbound mode card on Activity. A row that no longer fits wraps as before, and a segmented control too wide for the widget panel turns into its picker. Large controls keep their 40px height but set their text at the body size, 14px, on every screen, so they read like the card titles beside them.
- The sign-in page has the language menu, palette menu and light and dark toggle again in its top corner, in place of the link to Appearance settings, so the page can be switched before signing in. The three use the top bar's quiet icon buttons at the same size.
- The sign-in page takes the token again for a backend that uses one: a Token field with a show and hide toggle and a Connect button, in place of the button that opened the Backend settings editor. The token is saved in the profile being signed in to, and Settings still edits it.
- Every routing and DNS rule row with a known config file line has the Open config file button again, beside Edit and Remove. It was shown only for rows the visual editor could not take, so a visually editable rule had no way to jump to its line in the source editor.
+13 -13
View File
@@ -2,8 +2,8 @@
// 3a5a8ccf. One deliberate change at
// 1280px and wider: the traffic pair sits on the twelve tracks the details row uses, so its narrow card lines up with
// the details column below it; main's 2fr/1fr split put it 4px off (history 728 to 732 wide, outbounds 4px narrower).
// Another in zh-TW at 1440, 1024 and 768px: the control cards' row gives each card its one line first and shares the
// rest by the footprints (see fitSpans), so those three boxes are this branch's.
// Another in zh-TW at 1440, 1024 and 768px and in en at 1024 and 768px: the control cards' row gives each card its one
// line first and shares the rest by the footprints (see fitSpans), so those boxes are this branch's.
export const cardBounds: Record<string, readonly (readonly [x: number, y: number, width: number, height: number])[]> = {
'en-1440': [
[280, 156, 462.84375, 110],
@@ -22,8 +22,8 @@ export const cardBounds: Record<string, readonly (readonly [x: number, y: number
],
'en-1024': [
[280, 156, 688, 66],
[280, 234, 338, 110],
[630, 234, 338, 110],
[280, 234, 409.65625, 110],
[701.65625, 234, 266.328125, 110],
[280, 368, 338, 110],
[630, 368, 338, 110],
[280, 490, 338, 110],
@@ -51,9 +51,9 @@ export const cardBounds: Record<string, readonly (readonly [x: number, y: number
[16, 2042, 358, 264]
],
'zh-TW-1440': [
[280, 160, 447.671875, 74],
[739.671875, 160, 360, 74],
[1111.671875, 160, 272.328125, 74],
[280, 160, 450.328125, 74],
[742.328125, 160, 360, 74],
[1114.328125, 160, 269.671875, 74],
[280, 290, 211.1875, 110],
[503.1875, 290, 211.203125, 110],
[726.390625, 290, 211.203125, 110],
@@ -67,8 +67,8 @@ export const cardBounds: Record<string, readonly (readonly [x: number, y: number
],
'zh-TW-1024': [
[280, 160, 688, 74],
[280, 246, 381.328125, 74],
[673.328125, 246, 294.65625, 74],
[280, 246, 383, 74],
[675, 246, 293, 74],
[280, 324, 338, 110],
[630, 324, 338, 110],
[280, 446, 338, 110],
@@ -127,8 +127,8 @@ export const cardBounds: Record<string, readonly (readonly [x: number, y: number
],
'en-768': [
[40, 204, 688, 94],
[40, 310, 338, 94],
[390, 310, 338, 94],
[40, 310, 409.65625, 94],
[461.65625, 310, 266.328125, 94],
[40, 428, 338, 110],
[390, 428, 338, 110],
[40, 550, 338, 110],
@@ -142,8 +142,8 @@ export const cardBounds: Record<string, readonly (readonly [x: number, y: number
],
'zh-TW-768': [
[40, 216, 688, 74],
[40, 302, 381.328125, 74],
[433.328125, 302, 294.65625, 74],
[40, 302, 383, 74],
[435, 302, 293, 74],
[40, 372, 338, 110],
[390, 372, 338, 110],
[40, 494, 338, 110],
+1 -1
View File
@@ -148,7 +148,7 @@ test('desktop subscription and node actions use the kit control text role', asyn
const style = getComputedStyle(el);
return {
size: style.fontSize,
control: style.getPropertyValue('--rp-text-lg').trim(),
control: style.getPropertyValue('--rp-text-md').trim(),
weight: style.fontWeight,
height: el.getBoundingClientRect().height
};
+2 -3
View File
@@ -237,11 +237,11 @@
--rp-scrollbar: 6px;
--rp-control: 32px;
--rp-control-lg: 40px;
/* L's inline padding and text size. Phones take M's (below), so a row of L controls fits as a row of M controls does. */
/* L's inline padding; phones take M's (below), so a row of L controls fits as a row of M controls does. L's text is M's text size at every width. */
--rp-lg-inset-btn: calc(var(--rp-control-lg) / 2);
--rp-lg-inset-field: calc(var(--rp-control-lg) * 3 / 8);
--rp-lg-inset-compact: calc(var(--rp-control-lg) * 3 / 8);
--rp-lg-text: var(--rp-text-lg);
--rp-lg-text: var(--rp-text-md);
--rp-lg-text-compact: var(--rp-text-lg);
--rp-control-xs: 24px;
--rp-duration: 150ms;
@@ -284,7 +284,6 @@
--rp-lg-inset-btn: var(--rp-space-3);
--rp-lg-inset-field: var(--rp-space-3);
--rp-lg-inset-compact: var(--rp-space-2);
--rp-lg-text: var(--rp-text-md);
--rp-lg-text-compact: var(--rp-text-xs);
}
}