mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: chat navbar follow-ups (#24951)
- correctly accounts for navbar height on ipad and when keyboard is open - fixes an incorrect I18n key
This commit is contained in:
@ -15,7 +15,7 @@ export default class ChatRoutesChannelInfo extends Component {
|
||||
|
||||
membersLabel = I18n.t("chat.channel_info.tabs.members");
|
||||
settingsLabel = I18n.t("chat.channel_info.tabs.settings");
|
||||
backToChannelLabel = I18n.t("chat.channel_info.back_to_all_channel");
|
||||
backToChannelLabel = I18n.t("chat.channel_info.back_to_all_channels");
|
||||
backToAllChannelsLabel = I18n.t("chat.channel_info.back_to_channel");
|
||||
|
||||
get showTabs() {
|
||||
|
@ -3,19 +3,22 @@
|
||||
// 46px is the height of the navbar
|
||||
height: calc(
|
||||
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
||||
var(--composer-height, 0px) - var(--chat-header-offset)
|
||||
var(--composer-height, 0px) - var(--chat-header-offset, 0px)
|
||||
);
|
||||
|
||||
// mobile with keyboard opened
|
||||
.keyboard-visible & {
|
||||
height: calc(var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px));
|
||||
height: calc(
|
||||
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
||||
var(--chat-header-offset, 0px)
|
||||
);
|
||||
}
|
||||
|
||||
// ipad
|
||||
.footer-nav-ipad & {
|
||||
height: calc(
|
||||
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
||||
var(--composer-height, 0px)
|
||||
var(--chat-header-offset, 0px) - var(--composer-height, 0px)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user