Skip to content

Commit

Permalink
fix: styling fix of the scrollbar in the TransformModal
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 17, 2021
1 parent 871ac5c commit 5adc31d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/lib/components/modals/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
--itemIsActiveBG: #3883fa; // theme-color
--indicatorTop: 8px;

flex: 1;
display: flex;
flex-direction: column;

font-family: $font-family;
font-size: $font-size;
color: $black;

.contents {
padding: 20px;
overflow: auto;

.actions {
display: flex;
Expand Down
4 changes: 4 additions & 0 deletions src/lib/components/modals/SortModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import 'Modal';

.jsoneditor-modal.sort {
.contents {
overflow: hidden;
}

table {
width: 100%;
border-collapse: collapse;
Expand Down
13 changes: 5 additions & 8 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ export const SIMPLE_MODAL_OPTIONS = {
styleBg: {
top: 0,
left: 0,
background: 'rgba(0, 0, 0, 0.3)',
justifyContent: 'normal'
background: 'rgba(0, 0, 0, 0.3)'
},
styleWindow: {
borderRadius: '2px'
},
styleWindowWrap: {},
styleContent: {
padding: '0px',
overflow: 'visible' // needed for select box dropdowns which are larger than the modal
flex: 1,
display: 'flex',
padding: '0px'
}
}

Expand All @@ -61,10 +62,6 @@ export const TRANSFORM_MODAL_OPTIONS = {
styleWindow: {
...SIMPLE_MODAL_OPTIONS.styleWindow,
width: '700px'
},
styleContent: {
overflow: 'auto', // TODO: would be more neat if the header is fixed instead of scrolls along
padding: 0
}
}

Expand Down

0 comments on commit 5adc31d

Please sign in to comment.