fix(client): fix sidebar style

Fix #8049
This commit is contained in:
syuilo 2021-12-25 16:03:57 +09:00
parent a0de99198f
commit f1148c8257

View File

@ -170,6 +170,8 @@ export default defineComponent({
} }
&:hover, &.active { &:hover, &.active {
color: var(--accent);
&:before { &:before {
content: ""; content: "";
display: block; display: block;
@ -283,8 +285,10 @@ export default defineComponent({
} }
&:before { &:before {
width: 100%; width: auto;
border-radius: 0; height: 100%;
aspect-ratio: 1/1;
border-radius: 8px;
} }
&.post { &.post {
@ -296,8 +300,9 @@ export default defineComponent({
} }
&.post:before { &.post:before {
width: calc(100% - 32px); width: calc(100% - 28px);
height: calc(100% - 32px); height: auto;
aspect-ratio: 1/1;
border-radius: 100%; border-radius: 100%;
} }
} }