Skip to content

Commit

Permalink
feat: allow resize the dialogbox for bigger/hidpi screens (#732)
Browse files Browse the repository at this point in the history
* resize dialogbox with drag corner of box

* update style.css

* resizable just for more than full HD display

* fix size for initial size for small and big size

* full screen dialog box on mobile device - wider dialogbox on device

* remvoe custom-dialog.css that combine with style.css

* disable resize for moile device

Co-authored-by: Felipe Martin <[email protected]>

* use new generated style.css

* not limit minimum size to 400px

* set default value in .custom-dialog

---------

Co-authored-by: Felipe Martin <[email protected]>
  • Loading branch information
Monirzadeh and fmartingr authored Oct 9, 2023
1 parent c6aabc4 commit 46c1a6a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/view/assets/css/style.css

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions internal/view/assets/less/custom-dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
.custom-dialog {
display : flex;
flex-flow : column nowrap;
width : 100%;
max-width : 400px;
min-height : 0;
max-height : 100%;
max-width : 100%;
width : 400px;
overflow : auto;
background-color: var(--contentBg);
font-size : 16px;
resize : both;

.custom-dialog-header {
padding : 16px;
Expand All @@ -53,6 +54,7 @@
align-content : start;
align-items : baseline;
grid-gap : 16px;
flex-grow : 1;

&::after {
content : "";
Expand Down Expand Up @@ -153,4 +155,17 @@
}
}
}
}
}


@media only screen and (max-width: 768px) {
.custom-dialog-overlay {
padding: 0px;
}

.custom-dialog {
width : 100% !important;
height: 100% !important;
resize: none !important;
}
}

0 comments on commit 46c1a6a

Please sign in to comment.