Skip to content

Commit d647407

Browse files
authored
Fix rendering1 (#51)
* Fix the rendering issue in header * Fixed the top bar layout in mobile view
1 parent c22e50c commit d647407

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

editor/css/header-responsive.css

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@
190190

191191
/*
192192
* Mobile only (≤768px):
193-
* [panel+logo LEFT] [spacer] [filename | Letter/Diary | PDF] [spacer]
194-
* Spacers share free width so the control cluster sits in the remaining
195-
* space instead of looking pinned left with a dead zone on the right.
193+
* [panel+logo LEFT] [spacer] [filename | Letter/Diary] [spacer] [PDF RIGHT]
194+
* Spacers share free width; PDF stays flush right like desktop header-right.
196195
*/
197196
@media (max-width: 768px) {
198197
.header-content {
@@ -225,7 +224,7 @@
225224
display: none;
226225
}
227226

228-
/* Leading spacer — balances free space after the brand */
227+
/* Leading spacer — free space after the brand */
229228
.header-content::before {
230229
content: '';
231230
order: 2;
@@ -250,28 +249,33 @@
250249
display: none !important;
251250
}
252251

252+
.translit-toggle-wrapper {
253+
display: none !important;
254+
}
255+
256+
/* Trailing spacer — pushes PDF to the right edge */
257+
.header-content::after {
258+
content: '';
259+
order: 5;
260+
flex: 1 1 0;
261+
min-width: 4px;
262+
max-width: 100%;
263+
}
264+
253265
#exportBtn {
254266
display: inline-flex !important;
255-
order: 5;
267+
order: 6;
256268
flex: 0 0 auto;
257269
width: 36px;
258270
padding: 0;
259271
justify-content: center;
272+
margin-left: 0;
260273
}
261274

262275
#exportBtn span:not(.btn-icon) {
263276
display: none;
264277
}
265278

266-
/* Trailing spacer — matches ::before so cluster isn't left-biased */
267-
.header-content::after {
268-
content: '';
269-
order: 6;
270-
flex: 1 1 0;
271-
min-width: 4px;
272-
max-width: 100%;
273-
}
274-
275279
.segment-btn {
276280
padding: 0 10px;
277281
font-size: 12px;

0 commit comments

Comments
 (0)