Skip to content

Commit

Permalink
fix: minor styling issues with modals
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Sep 21, 2023
1 parent 2a33aeb commit 97d2d94
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
5 changes: 1 addition & 4 deletions src/lib/components/modals/JSONEditorModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

.jse-modal.jse-jsoneditor-modal {
.jse-modal-contents {
flex: 1;
display: flex;
flex-direction: column;
padding-top: 0;

--jse-theme-color: var(--jse-modal-theme-color);
Expand All @@ -31,7 +28,7 @@

.jse-modal-inline-editor {
flex: 1;
min-height: 0;
min-height: 150px;
min-width: 0;
display: flex;
}
Expand Down
10 changes: 1 addition & 9 deletions src/lib/components/modals/JSONRepairModal.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
@import '../../styles';
@import 'Modal';

.jse-modal.jse-repair {
flex: 1;
display: flex;
flex-direction: column;

font-family: var(--jse-font-family);
font-size: var(--jse-font-size);
line-height: normal;
background: var(--jse-background-color);
color: var(--jse-text-color);
}
9 changes: 6 additions & 3 deletions src/lib/components/modals/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
color: var(--jse-text-color);

.jse-modal-contents {
flex: 1;
display: flex;
flex-direction: column;
padding: 20px;
overflow: auto;
min-width: 0;
Expand Down Expand Up @@ -78,13 +81,13 @@
width: 800px;
height: auto;
min-height: 500px;
max-height: 80%;
max-height: calc(100vh - 6rem);
display: flex;
}

:global(.bg.jse-modal-bg .jse-modal-content) {
:global(.bg.jse-modal-bg .jse-modal-container) {
flex: 1;
display: flex;
max-height: calc(100vh - 6rem);
flex-direction: column;
padding: 0;
}
3 changes: 0 additions & 3 deletions src/lib/components/modals/TransformModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

.jse-modal.jse-transform {
.jse-modal-contents {
flex: 1;
display: flex;
flex-direction: column;
color: inherit;
min-height: 0;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const SIMPLE_MODAL_OPTIONS = {
classBg: 'jse-modal-bg',
classWindow: 'jse-modal-window',
classWindowWrap: 'jse-modal-window-wrap',
classContent: 'jse-modal-content'
classContent: 'jse-modal-container'
}

export const SORT_MODAL_OPTIONS = {
Expand Down

0 comments on commit 97d2d94

Please sign in to comment.