Skip to content

Commit 585fe91

Browse files
Full page form spacing (#2815)
* Tighten full form divider spacing * Hardware radio tweaks * switch to ! important --------- Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>
1 parent 973d332 commit 585fe91

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"oxc"
1010
],
1111
"categories": {
12-
"correctness": "error",
12+
"correctness": "error"
1313
},
1414
"rules": {
1515
// only worry about console.log

app/forms/instance-create.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,13 +905,11 @@ const PRESETS = [
905905
{ category: 'general', id: 'general-sm', memory: 16, ncpus: 4 },
906906
{ category: 'general', id: 'general-md', memory: 32, ncpus: 8 },
907907
{ category: 'general', id: 'general-lg', memory: 64, ncpus: 16 },
908-
{ category: 'general', id: 'general-xl', memory: 128, ncpus: 32 },
909908

910909
{ category: 'highCPU', id: 'highCPU-xs', memory: 4, ncpus: 2 },
911910
{ category: 'highCPU', id: 'highCPU-sm', memory: 8, ncpus: 4 },
912911
{ category: 'highCPU', id: 'highCPU-md', memory: 16, ncpus: 8 },
913912
{ category: 'highCPU', id: 'highCPU-lg', memory: 32, ncpus: 16 },
914-
{ category: 'highCPU', id: 'highCPU-xl', memory: 64, ncpus: 32 },
915913

916914
{ category: 'highMemory', id: 'highMemory-xs', memory: 16, ncpus: 2 },
917915
{ category: 'highMemory', id: 'highMemory-sm', memory: 32, ncpus: 4 },

app/ui/lib/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Radio = ({ children, className, ...inputProps }: RadioProps) => (
4040

4141
const cardLabelStyles = `
4242
py-2 px-4 text-sans-md border rounded border-default bg-default hover:border-hover
43-
peer-focus:ring-2 peer-focus:ring-accent-secondary w-44
43+
peer-focus:ring-2 peer-focus:ring-accent-secondary w-44 text-raise
4444
4545
children:py-3 children:px-3 children:-mx-4 children:border-secondary
4646
first:children:-mt-2 last:children:-mb-2 cursor-pointer

app/ui/styles/components/form.css

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This Source Code Form is subject to the terms of the Mozilla Public
33
* License, v. 2.0. If a copy of the MPL was not distributed with this
44
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
5-
*
5+
*
66
* Copyright Oxide Computer Company
77
*/
88

@@ -22,10 +22,6 @@
2222
@apply space-y-6;
2323
}
2424

25-
.ox-form.is-side-modal .ox-divider {
26-
@apply my-10;
27-
}
28-
29-
.ox-form:not(.is-side-modal) .ox-divider {
30-
@apply mb-16 mt-20;
25+
.ox-form .ox-divider {
26+
@apply !my-10; /* important overrides space-y-* on .ox-form */
3127
}

0 commit comments

Comments
 (0)