Skip to content

Commit

Permalink
increase all tree indent and fix tag panel #88
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Mar 29, 2024
1 parent 7951b6f commit 2fb2dd1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
5 changes: 5 additions & 0 deletions src/workspace/panel/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
.nav-buttons-container {
justify-content: flex-start;
padding-left: var(--size-4-1);
}

// increase tree indent
body {
--nav-item-children-padding-left: var(--size-4-2);
}
1 change: 0 additions & 1 deletion src/workspace/panel/file-explorer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ body.theme-dark.explorer-icon .is-active .nav-file-tag {

#{utils.with-no-plugin('.explorer-icon')} {
.workspace-leaf-content[data-type='file-explorer'] .nav-files-container .mod-root {
--nav-item-children-padding-left: var(--size-4-2);
.nav-folder {

&-title {
Expand Down
33 changes: 24 additions & 9 deletions src/workspace/panel/tag.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
.workspace-leaf-content[data-type="tag"] .tree-item-self::before {
background-color: var(--text-normal);
line-height: var(--line-height-tight);
width: 1rem;
height: 1rem;
margin-left: calc(-1 * var(--size-4-4));
margin-right: var(--size-2-3);
transform: translateY(var(--size-4-1));
// add icon in icons.scss
.workspace-leaf-content[data-type="tag"] {
.tree-item-self {
&::before {
background-color: var(--accent-active);
line-height: var(--line-height-tight);
width: 1rem;
height: 1rem;
margin-left: calc(-1 * var(--size-4-5));
margin-right: var(--size-4-3);
transform: translateY(var(--size-4-1));
// add icon in icons.scss
}
&:has(.tree-item-icon)::before{
background-color: var(--folder-color);
}
}

.tree-item-icon.collapse-icon {
cursor: pointer;

svg {
color: transparent;
}
}
}

0 comments on commit 2fb2dd1

Please sign in to comment.