Skip to content

Commit 3b2dc90

Browse files
committed
Make the content more compact and prevent harsh flex cutoff when container is too small
1 parent a0bd0f2 commit 3b2dc90

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<title>Color Picker</title>
77
</head>
88

9-
<body class="flex column x-mid">
10-
<div id="main" class="flex column x-mid">
9+
<body class="x-mid">
10+
<div id="main" class="flex column x-mid gap mx-auto">
1111

1212
<div id="tab-strip" class="tab-strip flex row">
1313
<div id="simple-tab" class="simple tab-button selected">Simple</div>

src/stylesheets/main.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
body {
77
background: var(--dialog-background);
88
padding: 0.75rem 0;
9+
min-width: fit-content;
910
}
1011

1112
body.dragging, body.dragging * {
@@ -43,8 +44,7 @@ body.dragging, body.dragging * {
4344
}
4445

4546
#content-pane {
46-
height: 38rem;
47-
width: 70%;
47+
padding-inline: 5%;
4848
}
4949

5050
.checkmark {
@@ -177,7 +177,7 @@ body.dragging, body.dragging * {
177177

178178
.main-outputs {
179179
gap: 0.3rem;
180-
margin: 1.5rem 0;
180+
margin: 1.5rem 0 0 0;
181181
}
182182

183183
.output-field {
@@ -233,6 +233,14 @@ body.dragging, body.dragging * {
233233
}
234234

235235
.tab-strip {
236-
margin-bottom: 1.5rem;
237236
position: relative;
238237
}
238+
239+
.gap {
240+
gap: 3rem;
241+
}
242+
243+
.mx-auto {
244+
margin-left: auto;
245+
margin-right: auto;
246+
}

0 commit comments

Comments
 (0)