mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 23:06:28 +08:00
ab326d10d8
When reaching the top of a thread, the full thread title will be displayed if it was too long to fit. It works in mobile, drawer mode, and fullscreen. --------- Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
24 lines
582 B
SCSS
24 lines
582 B
SCSS
@mixin chat-height($inset: 0px) {
|
|
// desktop and mobile
|
|
// -1px is for the bottom border of the chat navbar
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--composer-height, 0px) - 1px - $inset
|
|
);
|
|
|
|
// mobile with keyboard opened
|
|
.keyboard-visible & {
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) - 1px - $inset
|
|
);
|
|
}
|
|
|
|
// ipad
|
|
.footer-nav-ipad & {
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--composer-height, 0px) - 1px - $inset
|
|
);
|
|
}
|
|
}
|