Skip to content

Commit 9aa29ee

Browse files
committed
hub-client: swap view toggle buttons
1 parent 8ee7804 commit 9aa29ee

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

hub-client/src/components/ViewToggleControl.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export default function ViewToggleControl() {
1111
return (
1212
<div className="view-toggle-control">
1313
<button
14-
className={`view-toggle-btn${viewMode === 'preview' ? ' active' : ''}`}
15-
onClick={() => setViewMode('preview')}
16-
title="Expand preview"
17-
aria-label="Preview view"
14+
className={`view-toggle-btn${viewMode === 'markup' ? ' active' : ''}`}
15+
onClick={() => setViewMode('markup')}
16+
title="Expand markup"
17+
aria-label="Markup view"
1818
>
1919
<svg width="12" height="10" viewBox="0 0 12 10">
20-
<rect x="0" y="0" width="3" height="10" rx="0.5" fill="currentColor" opacity="0.25" />
21-
<rect x="5" y="0" width="7" height="10" rx="0.5" fill="currentColor" />
20+
<rect x="0" y="0" width="7" height="10" rx="0.5" fill="currentColor" />
21+
<rect x="9" y="0" width="3" height="10" rx="0.5" fill="currentColor" opacity="0.25" />
2222
</svg>
2323
</button>
2424
<button
@@ -33,14 +33,14 @@ export default function ViewToggleControl() {
3333
</svg>
3434
</button>
3535
<button
36-
className={`view-toggle-btn${viewMode === 'markup' ? ' active' : ''}`}
37-
onClick={() => setViewMode('markup')}
38-
title="Expand markup"
39-
aria-label="Markup view"
36+
className={`view-toggle-btn${viewMode === 'preview' ? ' active' : ''}`}
37+
onClick={() => setViewMode('preview')}
38+
title="Expand preview"
39+
aria-label="Preview view"
4040
>
4141
<svg width="12" height="10" viewBox="0 0 12 10">
42-
<rect x="0" y="0" width="7" height="10" rx="0.5" fill="currentColor" />
43-
<rect x="9" y="0" width="3" height="10" rx="0.5" fill="currentColor" opacity="0.25" />
42+
<rect x="0" y="0" width="3" height="10" rx="0.5" fill="currentColor" opacity="0.25" />
43+
<rect x="5" y="0" width="7" height="10" rx="0.5" fill="currentColor" />
4444
</svg>
4545
</button>
4646
</div>

0 commit comments

Comments
 (0)