Skip to content

Commit 32b3bc0

Browse files
fix: constrain session config bar to fit within parent card
Chapter dropdown with long source names was overflowing the card. Fix: flex labels with min-width:0 + select width:100% + text-overflow ellipsis. Card gets overflow:hidden and box-sizing:border-box. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9cc472e commit 32b3bc0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • packages/studyctl/src/studyctl/web/static

‎packages/studyctl/src/studyctl/web/static/style.css‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ main {
234234
cursor: pointer;
235235
transition: all 0.3s;
236236
position: relative;
237+
overflow: hidden;
238+
box-sizing: border-box;
237239
}
238240

239241
.card:hover { border-color: var(--accent); }
@@ -493,6 +495,8 @@ body.dyslexic .card-content {
493495
align-items: center;
494496
flex-wrap: wrap;
495497
margin-bottom: 8px;
498+
width: 100%;
499+
box-sizing: border-box;
496500
}
497501

498502
.config-bar select, .config-bar input {
@@ -503,11 +507,19 @@ body.dyslexic .card-content {
503507
border-radius: 8px;
504508
font-family: inherit;
505509
font-size: 0.85rem;
510+
min-width: 0;
506511
}
507512

508513
.config-bar label {
509514
color: var(--text-muted);
510515
font-size: 0.85rem;
516+
min-width: 0;
517+
flex: 1 1 0;
518+
}
519+
520+
.config-bar label select {
521+
width: 100%;
522+
text-overflow: ellipsis;
511523
}
512524

513525
/* --- History section --- */

0 commit comments

Comments
 (0)