Skip to content

Commit

Permalink
fix: icons oveflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Mar 19, 2024
1 parent e430bf0 commit aeac807
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/src/lib/styles/github.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
height: 2.5rem;

background-color: $background-light;
border-bottom: 1px solid $border;

padding-right: 12px;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;

Expand All @@ -51,6 +49,12 @@
}
}

.carta-toolbar-left button,
.carta-toolbar-right,
.carta-filler {
border-bottom: 1px solid $border;
}

.carta-toolbar-left {
& > *:first-child {
border-top-left-radius: 0.5rem;
Expand All @@ -62,10 +66,12 @@
font-size: 0.95rem;
}

.carta-active {
button {
height: 100%;
}

.carta-active {
background-color: $background;
transform: translateY(1px);
color: white;

border-right: 1px solid $border;
Expand All @@ -77,6 +83,10 @@
}
}

.carta-toolbar-right {
padding-right: 12px;
}

.carta-icons-menu {
padding: 8px;
border: 1px solid $border;
Expand Down
2 changes: 2 additions & 0 deletions packages/carta-md/src/lib/internal/components/Toolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@
height: 2rem;
display: flex;
flex-shrink: 0;
overflow-x: auto;
overflow-y: hidden;
}
.carta-toolbar-left {
Expand Down

0 comments on commit aeac807

Please sign in to comment.