Skip to content

Commit

Permalink
fix: optimize toolbar layout on small screen (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
z0gSh1u authored Mar 27, 2024
1 parent 52fb30d commit e01c91c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
29 changes: 27 additions & 2 deletions packages/secretnote/src/modules/layout/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,33 @@
padding: 24px;
}

.libro-header-right {
padding-right: 12px;
.libro-view-top {
.libro-header-left {
width: 0;
}

.libro-header-center {
min-width: 620px; // at least 620px to show all buttons
padding-left: 72px; // centered according to cell width
}

.libro-header-right {
max-width: 100px;
padding-right: 12px;

.mana-toolbar-item {
margin: 0;

.libro-keybind-instructions-icon {
margin-top: 3px;
}

svg {
display: block !important;
margin: auto !important;
}
}
}
}

.libro-view-content {
Expand Down
1 change: 0 additions & 1 deletion packages/secretnote/src/modules/metrics/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
margin: 0;

.chat-icon {
margin-top: 12px;
color: #7b7b7b;
fill: none !important;
}
Expand Down

0 comments on commit e01c91c

Please sign in to comment.