Skip to content

Commit

Permalink
enhance(ui): polish header icons
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Dec 20, 2024
1 parent dce0cb0 commit bdadbeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 36 deletions.
8 changes: 0 additions & 8 deletions src/main/frontend/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,6 @@ li p:last-child,
@apply border-r;
}

i.ti {
/*
compensates the wrong top spacing in the iconfont.
See https://github.com/tabler/tabler-icons/issues/118/
*/
transform: translateY(-1px);
}

.dnd-separator {
border-bottom: 3px solid #ccc;
}
Expand Down
38 changes: 10 additions & 28 deletions src/main/frontend/components/header.css
Original file line number Diff line number Diff line change
@@ -1,57 +1,39 @@
.cp__header {
@apply shadow z-10;
@apply shadow z-10 flex items-center justify-between sticky top-0 left-0 right-0 leading-none whitespace-nowrap;

-webkit-app-region: drag;

padding-top: calc(var(--ls-headbar-inner-top-padding));
margin-top: var(--ls-win32-title-bar-height);
height: calc(var(--ls-headbar-height) + var(--ls-headbar-inner-top-padding));
display: flex;
align-items: center;
justify-content: space-between;
flex: 0 0 auto;
position: sticky;
top: 0;
left: 0;
right: 0;
line-height: 1;
white-space: nowrap;

> .l {
@apply pl-2;
@apply pl-2 h-full min-w-[var(--ls-left-sidebar-width)];

min-width: var(--ls-left-sidebar-width);
height: 100%;
align-items: center;
transition: padding-left .2s;
> div {
@apply items-center;
}
}

> .r {
align-items: center;
flex: 1;
justify-content: flex-end;
padding-right: 6px;
@apply flex flex-1 items-center justify-end pr-1.5;
}

/* To prevent header glitch on Safari */

> .l, > .r {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}

.button {
display: flex;
align-items: center;
justify-content: center;
@apply flex items-center justify-center;

.ti, .tie {
font-size: 20px;
@apply text-[20px];
}
}

.ui-items-container .button {
width: auto;
padding: 0 8px;
@apply w-auto py-0 px-1.5;
}

svg.warning {
Expand Down

0 comments on commit bdadbeb

Please sign in to comment.