Skip to content

Commit 97d2d94

Browse files
committedSep 21, 2023
fix: minor styling issues with modals
1 parent 2a33aeb commit 97d2d94

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed
 

‎src/lib/components/modals/JSONEditorModal.scss

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
.jse-modal.jse-jsoneditor-modal {
55
.jse-modal-contents {
6-
flex: 1;
7-
display: flex;
8-
flex-direction: column;
96
padding-top: 0;
107

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

3229
.jse-modal-inline-editor {
3330
flex: 1;
34-
min-height: 0;
31+
min-height: 150px;
3532
min-width: 0;
3633
display: flex;
3734
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
@import '../../styles';
2+
@import 'Modal';
23

34
.jse-modal.jse-repair {
4-
flex: 1;
5-
display: flex;
6-
flex-direction: column;
7-
8-
font-family: var(--jse-font-family);
9-
font-size: var(--jse-font-size);
10-
line-height: normal;
11-
background: var(--jse-background-color);
12-
color: var(--jse-text-color);
135
}

‎src/lib/components/modals/Modal.scss

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
color: var(--jse-text-color);
2424

2525
.jse-modal-contents {
26+
flex: 1;
27+
display: flex;
28+
flex-direction: column;
2629
padding: 20px;
2730
overflow: auto;
2831
min-width: 0;
@@ -78,13 +81,13 @@
7881
width: 800px;
7982
height: auto;
8083
min-height: 500px;
81-
max-height: 80%;
84+
max-height: calc(100vh - 6rem);
8285
display: flex;
8386
}
8487

85-
:global(.bg.jse-modal-bg .jse-modal-content) {
88+
:global(.bg.jse-modal-bg .jse-modal-container) {
8689
flex: 1;
8790
display: flex;
88-
max-height: calc(100vh - 6rem);
91+
flex-direction: column;
8992
padding: 0;
9093
}

‎src/lib/components/modals/TransformModal.scss

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
.jse-modal.jse-transform {
55
.jse-modal-contents {
6-
flex: 1;
7-
display: flex;
8-
flex-direction: column;
96
color: inherit;
107
min-height: 0;
118
padding: 0;

‎src/lib/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const SIMPLE_MODAL_OPTIONS = {
2626
classBg: 'jse-modal-bg',
2727
classWindow: 'jse-modal-window',
2828
classWindowWrap: 'jse-modal-window-wrap',
29-
classContent: 'jse-modal-content'
29+
classContent: 'jse-modal-container'
3030
}
3131

3232
export const SORT_MODAL_OPTIONS = {

0 commit comments

Comments
 (0)
Please sign in to comment.