Commit 63da9cb
authored
refactor: move the section order reset into the editor tab (#115)
The undo-reordering button used to sit in the tab bar next to the tab
list, visible on every tab even though it only acts on the Editor tab's
section list. It now lives inside the Editor tab content, right-aligned
above the list, so the control sits in the scope it affects and the tab
bar goes back to being pure navigation. This mirrors the Document tab's
styling-reset placement, giving both panels the same idiom.
The row carries a screen-reader-only "Sections" heading for context, and
the button matches the Document tab's reset sizing. New heading strings
land in both locales.
Testing: on the Editor tab the reset renders above the section list and
stays disabled while the order is canonical; on the Layout and Document
tabs it does not render at all; the tab bar contains only the three
tabs.
Signed-off-by: Rizki Citra <rimzzlabs@proton.me>1 parent 0cebf8f commit 63da9cb
4 files changed
Lines changed: 9 additions & 3 deletions
File tree
- messages
- src/components/editor
- editor-sections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
567 | 568 | | |
568 | 569 | | |
569 | 570 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments