0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 02:51:10 +08:00
discourse/themes/horizon/scss/composer-peek-mode.scss
chapoi 1746de4dc6
UX: fix short chat window in composer peek-mode (#40604)
Fixes full screen chat view when peek-mode for composer is enabled

| BC | AC |
|--------|--------|
| <img width="1426" height="965" alt="CleanShot 2026-06-05 at 13 01 40"
src="https://github.com/user-attachments/assets/677261c0-ca65-44a6-90b3-e2810c3f430e"
/> | <img width="1426" height="965" alt="CleanShot 2026-06-05 at 13 00
28"
src="https://github.com/user-attachments/assets/32960e2f-1b26-4598-9dd1-2120f1754442"
/> |
2026-06-05 14:09:41 +02:00

72 lines
1.6 KiB
SCSS
Vendored

@use "lib/viewport";
.peek-mode-toggle {
display: none;
}
@include viewport.from(xl) {
html:not(.fullscreen-composer) {
.peek-mode-toggle svg {
transform: scaleX(-1);
}
&.composer-open {
.full-width-enabled .peek-mode-toggle {
display: flex;
}
.full-width-enabled.peek-mode-active {
#reply-control.hide-preview {
transition: none;
box-shadow: none;
border-radius: var(--d-border-radius-large);
.grippie {
display: none;
}
.reply-area {
padding-inline: 0.67em;
}
}
#reply-control:not(.fullscreen).hide-preview {
width: 100%;
right: var(--main-grid-gap);
top: var(--header-offset);
bottom: var(--main-grid-gap);
left: unset;
max-width: 36.5vw;
}
&.has-sidebar-page {
#main-outlet-wrapper {
grid-template-columns:
var(--d-sidebar-width) calc(100vw - 38vw - var(--d-sidebar-width))
1fr;
}
}
&:not(.has-sidebar-page) {
#main-outlet-wrapper {
grid-template-columns: 0 calc(100vw - 52vw) 1fr;
}
#reply-control:not(.fullscreen).hide-preview {
max-width: 46vw;
}
}
.sidebar-wrapper .sidebar-container {
height: unset;
}
&:not(.keyboard-visible) {
#reply-control:not(.fullscreen).hide-preview {
height: unset;
}
}
}
}
}
}