Skip to content

Commit 79f939b

Browse files
fix: mobile tabs scrolling.
1 parent 35ccfa3 commit 79f939b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

src/styles/panels-editor.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@
269269
border-top-color: var(--border-control);
270270
}
271271

272+
.workspace-tab:has(.workspace-tab__name-input) {
273+
position: relative;
274+
z-index: 3;
275+
}
276+
272277
.workspace-tabs-strip:has(> .workspace-tab:nth-child(n + 7)) > .workspace-tab {
273278
min-width: 148px;
274279
}
@@ -329,9 +334,9 @@
329334

330335
.workspace-tab__name-input {
331336
width: min(320px, 52vw);
332-
border: 1px solid var(--border-control);
337+
border: 1px solid var(--border-strong);
333338
border-radius: 8px;
334-
background: var(--surface-select);
339+
background: var(--surface-select-option);
335340
color: var(--select-text);
336341
padding: 3px 8px;
337342
font: inherit;
@@ -590,3 +595,10 @@ textarea:focus {
590595
min-height: min(360px, var(--mobile-editor-max-height));
591596
}
592597
}
598+
599+
@media (width <= 640px) {
600+
.workspace-tab {
601+
flex: 0 0 auto;
602+
min-width: 148px;
603+
}
604+
}

0 commit comments

Comments
 (0)