two_pane_settings: Calculate body height from resize instead of fiddly CSS.

Having a set height is necessary for simplebar to work, and the height
will change depending on whether the header is one or two lines.
This commit is contained in:
Evy Kassirer
2025-04-30 15:54:40 +02:00
committed by Tim Abbott
parent a5c77cc017
commit d82bd57cef
8 changed files with 32 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
<div class="hide" id="stream-creation" tabindex="-1" role="dialog"
<div class="hide two-pane-settings-right-simplebar-container" id="stream-creation" tabindex="-1" role="dialog"
aria-label="{{t 'Channel creation' }}">
<form id="stream_creation_form">
<div class="two-pane-settings-creation-simplebar-container" data-simplebar data-simplebar-tab-index="-1">

View File

@@ -19,7 +19,7 @@
<div class="float-clear"></div>
</div>
</div>
<div class="input-append stream_name_search_section" id="stream_filter">
<div class="input-append stream_name_search_section two-pane-settings-search" id="stream_filter">
<input type="text" name="stream_name" id="search_stream_name" class="filter_text_input" autocomplete="off"
placeholder="{{t 'Filter' }}" value=""/>
<button type="button" class="clear_search_button" id="clear_search_stream_name">
@@ -58,7 +58,7 @@
</span>
</div>
</div>
<div class="streams-list" data-simplebar data-simplebar-tab-index="-1">
<div class="streams-list two-pane-settings-left-simplebar-container" data-simplebar data-simplebar-tab-index="-1">
</div>
</div>
<div class="right">
@@ -76,7 +76,7 @@
{{/unless}}
</div>
</div>
<div id="stream_settings" class="settings" data-simplebar data-simplebar-tab-index="-1" data-simplebar-auto-hide="false">
<div id="stream_settings" class="two-pane-settings-right-simplebar-container settings" data-simplebar data-simplebar-tab-index="-1" data-simplebar-auto-hide="false">
{{!-- edit stream here --}}
</div>
{{> stream_creation_form . }}