Skip to content

Commit fe4bbad

Browse files
committed
fix: move user bar inside right panel to avoid demo banner overlap
1 parent e1446b9 commit fe4bbad

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

editor/index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@
207207
<span id="page-indicator">Page 1 / 1</span>
208208
<button id="btn-page-next" type="button" class="icon-btn" title="Next Page"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg></button>
209209
</div>
210+
<!-- user bar moved to right panel -->
211+
<div id="canvas"></div>
212+
</main>
213+
214+
<aside class="panel panel-right">
210215
<div id="user-bar" class="user-bar" style="display:none;">
211216
<div class="user-avatar" id="user-avatar-initials"></div>
212217
<div class="user-info">
@@ -215,10 +220,6 @@
215220
</div>
216221
<button id="btn-logout" type="button" class="user-logout-btn" title="Sign Out"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg></button>
217222
</div>
218-
<div id="canvas"></div>
219-
</main>
220-
221-
<aside class="panel panel-right">
222223
<div class="panel-title">Properties</div>
223224
<div id="text-toolbar" class="toolbar hidden">
224225
<button data-cmd="bold" title="Bold"><strong>B</strong></button>

editor/styles.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ body {
6161
.panel-right {
6262
border-right: none;
6363
border-left: 1px solid var(--panel-border);
64-
padding-top: 50px;
6564
}
6665

6766
.panel-title {
@@ -966,11 +965,8 @@ button.active {
966965
display: flex;
967966
align-items: center;
968967
gap: 10px;
969-
padding: 8px 16px;
970-
background: var(--panel);
968+
padding: 10px 12px;
971969
border-bottom: 1px solid var(--panel-border);
972-
border-left: 1px solid var(--panel-border);
973-
border-radius: 0 0 0 10px;
974970
}
975971
.user-avatar {
976972
width: 32px;
@@ -1025,8 +1021,6 @@ button.active {
10251021
color: var(--accent);
10261022
border-color: var(--accent);
10271023
}
1028-
.has-demo-banner .user-bar { top: 38px; }
1029-
.has-demo-banner .panel-right { padding-top: 88px; }
10301024

10311025
/* ── Settings Button ── */
10321026
.settings-btn {

0 commit comments

Comments
 (0)