refactor(notes): scope stacked-note sticky to desktop
Move position: sticky from the global .note rule into the desktop @media block of the scoped stacked-note components, so mobile no longer inherits sticky positioning (and no top is set there).
This commit is contained in:
@@ -211,7 +211,6 @@ $header-height: 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
position: sticky;
|
||||
|
||||
&:not(:first-child) {
|
||||
border-top: 1px solid rgba(18, 19, 58, 0.2);
|
||||
|
||||
@@ -330,6 +330,8 @@ $border-color: rgba(18, 19, 58, 0.2);
|
||||
.stacked-note {
|
||||
border-top: 0;
|
||||
border-left: 1px solid $border-color;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.title-stacked-note {
|
||||
|
||||
@@ -193,6 +193,8 @@ $border-color: rgba(18, 19, 58, 0.2);
|
||||
.stacked-note {
|
||||
border-top: 0;
|
||||
border-left: 1px solid $border-color;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.title-stacked-note {
|
||||
|
||||
@@ -241,7 +241,6 @@ watch(
|
||||
overflow-y: auto;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
|
||||
.title {
|
||||
text-align: left;
|
||||
|
||||
Reference in New Issue
Block a user