mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
UX: make chat drawer settingspage full height (#27385)
This commit is contained in:
parent
c18e5d1698
commit
b6c2430bf6
@ -579,6 +579,12 @@ export default class ChatRouteChannelInfoSettings extends Component {
|
||||
{{/if}}
|
||||
|
||||
<form.section class="--leave-channel" as |section|>
|
||||
{{#if @channel.chatable.group}}
|
||||
<div class="c-channel-settings__leave-info">
|
||||
{{icon "exclamation-triangle"}}
|
||||
{{i18n "chat.channel_settings.leave_groupchat_info"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<section.row>
|
||||
<:action>
|
||||
<ToggleChannelMembershipButton
|
||||
@ -593,12 +599,6 @@ export default class ChatRouteChannelInfoSettings extends Component {
|
||||
/>
|
||||
</:action>
|
||||
</section.row>
|
||||
{{#if @channel.chatable.group}}
|
||||
<div class="c-channel-settings__leave-info">
|
||||
{{icon "exclamation-triangle"}}
|
||||
{{i18n "chat.channel_settings.leave_groupchat_info"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</form.section>
|
||||
</ChatForm>
|
||||
</div>
|
||||
|
@ -90,10 +90,25 @@ html.rtl {
|
||||
|
||||
.chat-drawer-content {
|
||||
@include chat-scrollbar();
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
min-height: 1px;
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
|
||||
.c-channel-settings {
|
||||
flex-grow: 1;
|
||||
|
||||
.chat-form {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.chat-form__section.--leave-channel {
|
||||
margin-top: auto;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user