Skip to content

Commit accab0b

Browse files
committed
Sticky content editor region tabs
1 parent a19028b commit accab0b

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Next version
77

88
- Replaced the plugin expanding and collapsing animation with a version for
99
modern browsers.
10+
- Made the content editor region tabs stick to the top of the browser window
11+
when scrolling down.
1012

1113

1214
7.4 (2025-07-02)

content_editor/static/content_editor/content_editor.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ html {
33
overflow-x: hidden;
44
}
55

6+
.tabs:has(.machine-collapse) {
7+
position: sticky;
8+
top: 0;
9+
z-index: 1;
10+
background: var(--body-bg);
11+
border-bottom: 1px solid var(--hairline-color, #e8e8e8);
12+
}
13+
614
.machine-collapse {
715
order: 1;
816
margin-left: auto;
@@ -16,6 +24,7 @@ html {
1624
.order-machine {
1725
padding: 10px 10px 20px 30px;
1826
border: 1px solid var(--hairline-color, #e8e8e8);
27+
border-top: none;
1928
position: relative;
2029

2130
display: flex;
@@ -197,6 +206,14 @@ h3[draggable] {
197206
display: none;
198207
}
199208

209+
.collapse-items .plugin-button {
210+
padding: 0px 4px;
211+
}
212+
213+
.collapse-items .plugin-button-icon {
214+
margin-right: 0;
215+
}
216+
200217
.collapse-items .uncollapse-all {
201218
display: none;
202219
}

content_editor/static/content_editor/tabbed_fieldsets.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
text-transform: none;
2929
letter-spacing: 0;
3030
float: left;
31-
padding: 10px 15px;
31+
padding: 8px 10px;
3232
margin: 0 4px 0 0;
3333
cursor: pointer;
3434
font-weight: bold;

0 commit comments

Comments
 (0)