Skip to content

Commit

Permalink
fix: styling tweaks in the TransformModal
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 6, 2022
1 parent 33de78f commit 3983918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
24 changes: 6 additions & 18 deletions src/lib/components/modals/TransformModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
padding-bottom: $padding;

.query-contents {
flex: 3;
flex: 1;
display: flex;
flex-direction: column;

// This is an ugly trick to compensate for the padding of the labels in .preview-data
margin-bottom: -2 * $padding + 2px;

.description {
color: $dark-gray;

Expand Down Expand Up @@ -56,9 +59,9 @@
}

.data-contents {
flex: 4;
flex: 1;
display: flex;
flex-direction: row;
flex-direction: column;
gap: 2 * $padding;

.original-data {
Expand All @@ -81,26 +84,12 @@
box-sizing: border-box;
}

@media screen and (max-width: 1600px) {
& {
flex: 3;
flex-direction: column;
}
}

&.hide-original-data {
flex-direction: column;
gap: 0;
margin-bottom: 0;
}
}

@media screen and (max-width: 1600px) {
.query-contents {
// This is an ugly trick to compensate for the padding of the labels in .preview-data
margin-bottom: -2 * $padding + 2px;
}
}
}

.actions {
Expand Down Expand Up @@ -153,7 +142,6 @@
border: 1px solid $background-gray;
box-shadow: none;
box-sizing: border-box;
min-height: 300px;
}

:global(.tree-mode.focus) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const TRANSFORM_MODAL_OPTIONS = {
...SIMPLE_MODAL_OPTIONS,
styleWindow: {
...SIMPLE_MODAL_OPTIONS.styleWindow,
width: '1900px',
height: '800px',
width: '1200px',
height: '80%',
display: 'flex'
}
}
Expand Down

0 comments on commit 3983918

Please sign in to comment.