Skip to content

Commit 34f9219

Browse files
committed
Make toolbar sticky
1 parent da04560 commit 34f9219

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

resources/js/components/EditorMenuBar.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,17 @@ export default {
153153
padding-top: 0.375rem;
154154
padding-bottom: 0.375rem;
155155
}
156+
.menubar {
157+
position: sticky;
158+
z-index: 100;
159+
top: 63px;
160+
}
156161
@media (max-width: 768px) {
157162
.menubar {
158163
overflow-x: scroll;
159164
white-space: nowrap;
160165
@apply py-1.5;
166+
top: 58px;
161167
}
162168
}
163169
.delimiter {

resources/sass/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ label.label {
159159
@apply mt-4 mb-4;
160160
border-top: 2px solid #e6e6e6;
161161
}
162-
}
162+
}

0 commit comments

Comments
 (0)