Skip to content

Commit 76e0362

Browse files
Make PlayBridgeJS tabs scroll when overflow
1 parent d221b24 commit 76e0362

File tree

1 file changed

+8
-4
lines changed
  • Examples/PlayBridgeJS/Sources/JavaScript

1 file changed

+8
-4
lines changed

Examples/PlayBridgeJS/Sources/JavaScript/styles.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ body {
306306
margin: 0;
307307
background-color: var(--color-fill-secondary);
308308
border-bottom: 1px solid var(--color-border);
309+
overflow-x: auto;
310+
overflow-y: hidden;
311+
scrollbar-gutter: stable;
312+
-webkit-overflow-scrolling: touch;
309313
}
310314

311315
.tab-button {
@@ -319,6 +323,8 @@ body {
319323
transition: all 0.2s ease;
320324
position: relative;
321325
border-bottom: 2px solid transparent;
326+
flex: 0 0 auto;
327+
white-space: nowrap;
322328
}
323329

324330
.tab-button:hover {
@@ -411,12 +417,10 @@ body {
411417
}
412418

413419
.tab-group {
414-
flex-wrap: wrap;
420+
scroll-padding-inline: 12px;
415421
}
416422

417423
.tab-button {
418-
flex: 1;
419-
min-width: 0;
420424
text-align: center;
421425
}
422426

@@ -447,4 +451,4 @@ body {
447451
.share-url-input {
448452
font-size: 12px;
449453
}
450-
}
454+
}

0 commit comments

Comments
 (0)