Skip to content

Commit

Permalink
Modal dialogs become unreadable after applying max zoom (#25293)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbaravaldez committed Feb 7, 2024
1 parent 4ad6ca1 commit a2ecb5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/sql/workbench/browser/modal/media/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@
}

/** FLYOUT **/
.modal.flyout-dialog .modal-dialog .modal-dialog-container {
display: contents;
overflow-x: auto;
}

.modal.flyout-dialog .modal-dialog {
margin: auto auto auto auto;
margin: auto 0 auto auto;
height: 100%;
max-width: 100%;
right: 0;
position: absolute;
overflow-y: hidden;
Expand Down
4 changes: 3 additions & 1 deletion src/sql/workbench/browser/modal/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export abstract class Modal extends Disposable implements IThemable {
private _dialogExteriorBorder?: Color;
private _dialogShadowColor?: Color;

private _modalDialogContainer?: HTMLElement;
private _modalDialog?: HTMLElement;
private _modalContent?: HTMLElement;
private _modalHeaderSection?: HTMLElement;
Expand Down Expand Up @@ -236,7 +237,8 @@ export abstract class Modal extends Disposable implements IThemable {
}
this._bodyContainer.style.top = `${top}px`;
this._modalDialog = DOM.append(this._bodyContainer, DOM.$('.modal-dialog'));
const formElement = DOM.append(this._modalDialog, DOM.$('form'));
this._modalDialogContainer = DOM.append(this._modalDialog, DOM.$('.modal-dialog-container'));
const formElement = DOM.append(this._modalDialogContainer, DOM.$('form'));

if (this._modalOptions.dialogStyle === 'normal') {
// set the height based on the available space and the expected height.
Expand Down

0 comments on commit a2ecb5f

Please sign in to comment.