Skip to content

Commit

Permalink
Refactor Edit.astro to include overflow-y scroll in tags container
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Dec 26, 2024
1 parent 3dbf691 commit f245f56
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ const tagsOptions = [{ label: 'None', value: 'null' }];
border-radius: 4px;
padding: 1rem;
font-size: 1rem;
overflow-y: scroll;
}
}

Expand Down
19 changes: 19 additions & 0 deletions packages/studiocms_dashboard/src/styles/tiny-mde.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
border-right: 2px solid hsl(var(--border)) !important;
border-bottom: 2px solid hsl(var(--border)) !important;
border-left: 2px solid hsl(var(--border)) !important;
overflow-y: auto;
overflow-x: hidden;

&::-webkit-scrollbar,
&::-webkit-scrollbar-track {
background-color: inherit;
border-radius: 99px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
&::-webkit-scrollbar-thumb {
background-color: hsl(var(--default-active));
border: 4px solid transparent;
background-clip: content-box;
border-radius: 99px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: hsl(var(--default-hover));
}
}

.TMBlankLine {
Expand Down

0 comments on commit f245f56

Please sign in to comment.