Skip to content

Commit 2b442c7

Browse files
committed
Fix bottom bar UI when shrunk
1 parent 458fc9c commit 2b442c7

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/components/Tiles/BottomBar.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ export default function BottomBar() {
7777
size="sm"
7878
sx={{
7979
minHeight: 33,
80+
81+
overflowX: "auto",
8082
"& .MuiTab-root": {
8183
fontSize: 12,
8284
minHeight: 24,
8385
padding: "2px 8px",
86+
flexShrink: 0,
8487
},
8588
}}
8689
>
@@ -243,6 +246,7 @@ function BottomBarFilter({
243246
sx={{
244247
marginRight: "var(--padding-xs)",
245248
fontSize: "12px",
249+
flexShrink: 0,
246250
}}
247251
size="sm"
248252
/>
@@ -256,6 +260,7 @@ function BottomBarFilter({
256260
}}
257261
sx={{
258262
width: "200px",
263+
minWidth: "150px",
259264
marginRight: "var(--padding-xs)",
260265
fontSize: "12px",
261266
}}
@@ -271,6 +276,7 @@ function BottomBarFilter({
271276
sx={{
272277
marginRight: "var(--padding-xs)",
273278
fontSize: "12px",
279+
flexShrink: 0,
274280
}}
275281
after={() => {
276282
setRefresh((prev) => prev + 1);

src/pages/IDE.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
justify-content: center;
2727
align-items: center;
2828
gap: var(--padding-lg);
29-
margin-bottom: var(--padding-lg);
3029
}
3130

3231
.screenshot-img-container {
@@ -36,12 +35,12 @@
3635
align-items: center;
3736
min-height: 0;
3837
min-width: 0;
39-
/* No padding or margin here */
4038
}
4139

4240
.screenshot-img-container > img {
41+
transform: translateY(calc(-1 * var(--padding-xs)));
4342
max-width: 100%;
44-
max-height: calc(100% - var(--padding-md) * 2);
43+
max-height: calc(100% - var(--padding-md) * 4);
4544
object-fit: contain;
4645
display: block;
4746
}

0 commit comments

Comments
 (0)