mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix dropdown menus hidden in modals 1241
This commit is contained in:
parent
fe3dfb7628
commit
ea6d69eb48
@ -144,7 +144,6 @@
|
||||
display: flex;
|
||||
|
||||
> * {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
min-width: 260px;
|
||||
max-width: 500px;
|
||||
@ -157,6 +156,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.cp-alertify-scrollable {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.msg {
|
||||
padding: @alertify_padding-base;
|
||||
margin-bottom: @alertify_padding-base;
|
||||
|
||||
@ -536,7 +536,8 @@ define([
|
||||
message = dialog.message(msg);
|
||||
}
|
||||
|
||||
var frame = h('div', [
|
||||
var cls = opt.scrollable ? '.cp-alertify-scrollable' : '';
|
||||
var frame = h('div'+cls, [
|
||||
message,
|
||||
dialog.getButtons(opt.buttons, opt.onClose)
|
||||
]);
|
||||
|
||||
@ -1765,7 +1765,7 @@ define([
|
||||
},
|
||||
];
|
||||
|
||||
var modal = UI.dialog.customModal(content, {buttons: buttons });
|
||||
var modal = UI.dialog.customModal(content, {scrollable: true, buttons: buttons });
|
||||
UI.openCustomModal(modal);
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user