diff --git a/app/src/App.css b/app/src/App.css index a93f819f..bf7afe06 100644 --- a/app/src/App.css +++ b/app/src/App.css @@ -36,7 +36,7 @@ * switch to `bottom-right` should not silently inherit a top offset. */ html .mantine-Notifications-root[data-position^='top'] { - top: calc(var(--navbar-height) + var(--mantine-spacing-md, 16px)); + top: calc(var(--navbar-height) + var(--mantine-spacing-md, 1rem)); } .wrolpi-navbar-right { @@ -159,7 +159,7 @@ html .wrolpi-navbar .mantine-ActionIcon-root:hover { } .channel-edit { - border-radius: 3px; + border-radius: 0.1875rem; padding: 0.75em; } @@ -186,12 +186,12 @@ pre.wrap-text { .duration-overlay { position: absolute; - top: 4px; - right: 4px; + top: 0.25rem; + right: 0.25rem; color: black; background: #ffffff; - padding: 0px 4px; - border-radius: 3px; + padding: 0px 0.25rem; + border-radius: 0.1875rem; } .no-link-underscore { @@ -219,8 +219,8 @@ div.inverted { .toggle { position: relative; display: inline-block; - width: 49px; - height: 23px; + width: 3.0625rem; + height: 1.4375rem; } .toggle input { @@ -239,14 +239,14 @@ div.inverted { background-color: rgb(166, 166, 166); -webkit-transition: .4s; transition: .4s; - border-radius: 34px; + border-radius: 2.125rem; } .slider:before { position: absolute; content: ""; - height: 22px; - width: 22px; + height: 1.375rem; + width: 1.375rem; left: 0; bottom: 0; background-color: white; @@ -316,9 +316,9 @@ input:checked + .slider:before { Use 100dvh so mobile browser chrome (URL bar) is accounted for. */ .preview-fit { width: 100%; - height: calc(100dvh - 300px); - max-height: calc(100dvh - 300px); - min-height: 240px; + height: calc(100dvh - 18.75rem); + max-height: calc(100dvh - 18.75rem); + min-height: 15rem; overflow: hidden; position: relative; display: flex; @@ -356,12 +356,12 @@ td.file-path > svg { .ui-alerts { position: fixed; z-index: 2060; - padding: 24px; + padding: 1.5rem; } .ui-alerts.top-right { - top: 20px; - right: 20px; + top: 1.25rem; + right: 1.25rem; } textarea.otp { @@ -370,9 +370,9 @@ textarea.otp { } .card-icon { - min-height: 163px; + min-height: 10.1875rem; text-align: center; - padding-top: 53px; + padding-top: 3.3125rem; } .card-icon.inverted { @@ -426,11 +426,6 @@ textarea.otp { box-shadow: none !important; } -/* Mobile-responsive Confirm modal */ -.ui.modal.themed-confirm { - max-width: 95vw; -} - .clickable { cursor: pointer; } @@ -469,7 +464,7 @@ textarea.otp { } .search-clear { - margin: 10px; + margin: 0.625rem; } .icon.divider { @@ -524,40 +519,40 @@ table.ratio-table td.min-width { } .form-skeleton-label { - height: 14px; - width: 80px; - margin-bottom: 8px; + height: 0.875rem; + width: 5rem; + margin-bottom: 0.5rem; background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; - border-radius: 3px; + border-radius: 0.1875rem; } .form-skeleton-input { - height: 38px; + height: 2.375rem; width: 100%; background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; - border-radius: 4px; + border-radius: 0.25rem; } .form-skeleton-textarea { - height: 80px; + height: 5rem; width: 100%; background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; - border-radius: 4px; + border-radius: 0.25rem; } .form-skeleton-button { - height: 42px; - width: 100px; + height: 2.625rem; + width: 6.25rem; background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; - border-radius: 4px; + border-radius: 0.25rem; } @keyframes skeleton-shimmer { @@ -741,7 +736,7 @@ tr.drag-deselecting td { .inventory-print th, .inventory-print td { border: 1px solid #999; - padding: 4px 6px; + padding: 0.25rem 0.375rem; text-align: left; vertical-align: top; } diff --git a/app/src/components/Files.js b/app/src/components/Files.js index 55338212..f5b455ea 100644 --- a/app/src/components/Files.js +++ b/app/src/components/Files.js @@ -987,8 +987,8 @@ function RefreshStepItem({phase, isActive, isCompleted, isDisabled, description}
-
{phase.title}
-
{isActive || isCompleted ? description : ''}
+
{phase.title}
+
{isActive || isCompleted ? description : ''}
} diff --git a/app/src/components/Flasher.js b/app/src/components/Flasher.js index a70d599e..9e6f1111 100644 --- a/app/src/components/Flasher.js +++ b/app/src/components/Flasher.js @@ -835,7 +835,7 @@ export function FlasherPage() {
{configuration.name}
-
+
{(configuration.files || []).length} file(s) {configuration.erase_all ? ' — erases flash' : ''}
@@ -968,7 +968,7 @@ export function FlasherPage() {
2. Connect
-
Baud rate
+
Baud rate