Skip to content

Commit

Permalink
Added supports check
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelinmegdanov committed Feb 17, 2025
1 parent 91ed456 commit 5c316f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/routes/Calendar/List/Item/Item.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
border-radius: var(--border-radius);
border: 0.15rem solid transparent;
transition: border-color 0.1s ease-out;
scroll-margin-block-start: 2px;

@supports (scroll-margin-block-start: 2px) {
scroll-margin-block-start: 2px;
}

.heading {
flex: none;
Expand Down
5 changes: 4 additions & 1 deletion src/routes/Calendar/List/List.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
width: 20rem;
padding: 0 1rem;
overflow-y: auto;
scroll-padding-block-start: 2px;

@supports (scroll-padding-block-start: 2px) {
scroll-padding-block-start: 2px;
}
}

@media only screen and (max-width: @small) and (orientation: portrait) {
Expand Down

0 comments on commit 5c316f4

Please sign in to comment.