UX: Composer and sidebar better fit (#23841)

This commit is contained in:
chapoi 2023-10-10 21:01:08 +03:00 committed by GitHub
parent 4c584f6e03
commit 7f580a3083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,3 +324,37 @@ a.toggle-preview {
background: none;
}
}
@media screen and (min-width: $reply-area-max-width) {
.sidebar-wrapper .sidebar-container {
.has-sidebar-page & {
height: auto;
}
}
#reply-control:not(.fullscreen) {
.has-sidebar-page & {
width: auto;
max-width: calc(
(var(--d-max-width) + (var(--d-sidebar-width) / 2)) - 1.5rem
);
margin-left: 0;
margin-right: 0;
transform: translateX(
calc(
((100vw - var(--d-max-width) - (var(--d-sidebar-width) / 0.5)) / 2) +
17em + 1rem
)
);
&.hide-preview {
max-width: calc(740px);
transform: translateX(
calc(
((100vw - 740px - var(--d-sidebar-width)) / 2) +
var(--d-sidebar-width)
)
);
}
}
}
}