mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
invite_user_modal: Always show scrollbar.
We now always show the scrollbar in invite modal body if it is scrollable. This avoids confusion and makes it clear that some options are out of view. Fixes #29393.
This commit is contained in:
@@ -63,6 +63,7 @@ export type DialogWidgetConfig = {
|
||||
post_render?: () => void;
|
||||
loading_spinner?: boolean;
|
||||
update_submit_disabled_state_on_change?: boolean;
|
||||
always_visible_scrollbar?: boolean;
|
||||
};
|
||||
|
||||
type RequestOpts = {
|
||||
@@ -130,6 +131,9 @@ export function launch(conf: DialogWidgetConfig): void {
|
||||
// submit button when clicked.
|
||||
// * update_submit_disabled_state_on_change: If true, updates state of submit button
|
||||
// on valid input change in modal.
|
||||
// * always_visible_scrollbar: Whether the scrollbar is always visible if modal body
|
||||
// has scrollable content. Default behaviour is to hide the scrollbar when it is
|
||||
// not in use.
|
||||
|
||||
const html_submit_button = conf.html_submit_button ?? $t_html({defaultMessage: "Save changes"});
|
||||
const html_exit_button = conf.html_exit_button ?? $t_html({defaultMessage: "Cancel"});
|
||||
@@ -141,6 +145,7 @@ export function launch(conf: DialogWidgetConfig): void {
|
||||
html_body: conf.html_body,
|
||||
id: conf.id,
|
||||
single_footer_button: conf.single_footer_button,
|
||||
always_visible_scrollbar: conf.always_visible_scrollbar,
|
||||
});
|
||||
const $dialog = $(html);
|
||||
$("body").append($dialog);
|
||||
|
||||
Reference in New Issue
Block a user