Skip to content

Commit

Permalink
perf(style/sidebar): improve some detail in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Feb 4, 2024
1 parent 7873b21 commit e181a6d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/artalk-sidebar/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ const darkMode = ref(bootParams.darkMode)
left: 0;
background: var(--at-color-bg);
border-top: 1px solid var(--at-color-border);
// A patch for loading
// Because the parent position set to fixed,
// the loading layer will be fixed to the area if position is absolute (which is default for atk-loading)
.atk-loading {
position: fixed;
top: 102px;
height: calc(100% - 102px);
}
}
}
</style>
7 changes: 7 additions & 0 deletions ui/artalk-sidebar/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ body {
.atk-sidebar-inner {
}

.atk-list {
.atk-main-editor {
margin-top: -4px;
margin-bottom: -2px;
}
}

.atk-sidebar-no-content {
position: absolute;
left: 0;
Expand Down

0 comments on commit e181a6d

Please sign in to comment.