mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: library sidebar design tweaks (#6582)
This commit is contained in:
parent
e619e06055
commit
fff9d1522a
7 changed files with 128 additions and 68 deletions
|
@ -26,6 +26,7 @@
|
|||
}
|
||||
|
||||
.library-menu-items-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
|
@ -35,10 +36,14 @@
|
|||
height: 100%;
|
||||
justify-content: center;
|
||||
margin: 0;
|
||||
border-bottom: 1px solid var(--sidebar-border-color);
|
||||
|
||||
position: relative;
|
||||
|
||||
& > div {
|
||||
padding-left: 0.75rem;
|
||||
padding-right: 0.75rem;
|
||||
}
|
||||
|
||||
&__row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
|
@ -59,6 +64,9 @@
|
|||
font-size: 1.125rem;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.75rem;
|
||||
width: 100%;
|
||||
padding-right: 4rem; // due to dropdown button
|
||||
box-sizing: border-box;
|
||||
|
||||
&--excal {
|
||||
margin-top: 2rem;
|
||||
|
@ -75,4 +83,11 @@
|
|||
color: var(--text-primary-color);
|
||||
}
|
||||
}
|
||||
|
||||
.library-menu-items-private-library-container {
|
||||
// so that when you toggle between pending item and no items, there's
|
||||
// no layout shift (this is hardcoded and works only with ENG locale)
|
||||
min-height: 3.75rem;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue