Skip to content

Commit

Permalink
Align icons in left sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ranfdev authored and tiensonqin committed Jun 13, 2022
1 parent 80acd26 commit bba1978
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/components/onboarding/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ body[data-page=import] {

.bd {
ul a {
padding: 2px 4px !important;
padding: 2px 8px !important;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/components/sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
[:div.nav-content-item.is-expand
{:class class}
[:div.nav-content-item-inner
[:div.header.items-center
[:div.header.items-center.mb-1
{:on-click (fn [^js/MouseEvent e]
(let [^js target (.-target e)
^js parent (.closest target ".nav-content-item")]
Expand Down
11 changes: 6 additions & 5 deletions src/main/frontend/components/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@
}

.page-icon {
@apply mr-1 align-baseline;
width: 16px;
height: 16px;
text-align: center;
display: inline-block;
line-height: 1em;
color: #aaa;
padding: 0 4px 0 8px;
color: var(--ls-icon-color);
}

a.item {
Expand Down Expand Up @@ -120,12 +122,12 @@
}

.header {
@apply px-6 py-1;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
cursor: pointer;
padding: 4px 25px;

> span {
> a {
Expand Down Expand Up @@ -173,7 +175,6 @@
> span {
font-size: 11px;
font-weight: 600;
padding-top: 2px;
}
}
}
Expand All @@ -188,7 +189,7 @@

a {
width: 100%;
padding: 2px 18px;
padding: 2px 24px;
display: block;
text-overflow: ellipsis;
overflow: hidden;
Expand Down

0 comments on commit bba1978

Please sign in to comment.