Skip to content

Commit c3a9f51

Browse files
committed
fix(reader): restore scrollable focus-mode layout
1 parent c145ece commit c3a9f51

1 file changed

Lines changed: 84 additions & 0 deletions

File tree

src/frontend/styles.css

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ div.tooltip {
879879
display: flex;
880880
flex-direction: column;
881881
overflow: hidden;
882+
min-height: 0;
882883
transition: all 0.3s ease;
883884
}
884885

@@ -944,6 +945,76 @@ div.tooltip {
944945
font-family: "Segoe UI", sans-serif;
945946
line-height: 1.6;
946947
flex: 1;
948+
min-height: 0;
949+
}
950+
951+
.reading-layout {
952+
display: flex;
953+
flex: 1;
954+
min-height: 0;
955+
overflow: hidden;
956+
}
957+
958+
.reading-main {
959+
display: flex;
960+
flex: 1 1 auto;
961+
flex-direction: column;
962+
min-width: 0;
963+
min-height: 0;
964+
}
965+
966+
.reading-diagnostics {
967+
display: flex;
968+
flex-wrap: wrap;
969+
gap: 8px;
970+
padding: 8px 18px 0;
971+
flex-shrink: 0;
972+
}
973+
974+
.reading-diagnostics-item {
975+
display: inline-flex;
976+
align-items: center;
977+
min-height: 24px;
978+
padding: 2px 8px;
979+
border-radius: 999px;
980+
background: rgba(60, 60, 60, 0.9);
981+
color: #cfd8e3;
982+
font-size: 0.78rem;
983+
}
984+
985+
.reading-outline {
986+
width: 240px;
987+
min-width: 200px;
988+
max-width: 280px;
989+
border-left: 1px solid #333;
990+
background: rgba(20, 20, 20, 0.82);
991+
display: flex;
992+
flex-direction: column;
993+
flex-shrink: 0;
994+
min-height: 0;
995+
}
996+
997+
.reading-outline-header {
998+
padding: 14px 16px 10px;
999+
color: #8ddcff;
1000+
font-size: 0.82rem;
1001+
font-weight: 700;
1002+
letter-spacing: 0.04em;
1003+
text-transform: uppercase;
1004+
border-bottom: 1px solid #2e2e2e;
1005+
}
1006+
1007+
.reading-outline-body {
1008+
flex: 1;
1009+
min-height: 0;
1010+
overflow-y: auto;
1011+
padding: 10px 12px 14px;
1012+
}
1013+
1014+
.reading-outline-empty {
1015+
color: #8c99a7;
1016+
font-size: 0.82rem;
1017+
line-height: 1.5;
9471018
}
9481019

9491020
/* Content Styling */
@@ -1165,6 +1236,19 @@ div.tooltip {
11651236
height: 90%;
11661237
}
11671238

1239+
.reading-layout {
1240+
flex-direction: column;
1241+
}
1242+
1243+
.reading-outline {
1244+
width: 100%;
1245+
max-width: none;
1246+
min-width: 0;
1247+
max-height: 180px;
1248+
border-left: none;
1249+
border-top: 1px solid #333;
1250+
}
1251+
11681252
/* 4. Top Bar Adjustments */
11691253
#source-control {
11701254
left: 70px; /* Make room for menu button */

0 commit comments

Comments
 (0)