Skip to content

Commit

Permalink
fix: show arrow down icon on the right side of the select boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 15, 2021
1 parent ef2a4cf commit c0375b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/lib/components/modals/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--clearSelectTop: 2px;
--clearSelectBottom: 2px;
--itemIsActiveBG: #3883fa; // theme-color
--indicatorTop: 8px;

font-family: $font-family;
font-size: $font-size;
Expand Down
8 changes: 4 additions & 4 deletions src/lib/components/modals/TransformWizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ table.transform-wizard {
flex-direction: row;
margin-bottom: $padding-half;

:global(.selectContainer.filter-field) {
:global(.selectContainer.filter-path) {
flex: 4;
margin-right: $padding-half;
}

:global(.selectContainer.filter-relation) {
flex: 1;
flex: 1.5;
margin-right: $padding-half;
}

:global(.selectContainer.sort-field) {
:global(.selectContainer.sort-path) {
flex: 3;
margin-right: $padding-half;
}
Expand All @@ -38,7 +38,7 @@ table.transform-wizard {
flex: 1;
}

:global(.selectContainer.projection-fields) {
:global(.selectContainer.projection-paths) {
flex: 1;
}

Expand Down
21 changes: 17 additions & 4 deletions src/lib/components/modals/TransformWizard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,15 @@
<th>Filter</th>
<td>
<div class="horizontal">
<Select containerClasses="filter-field" items={fieldOptions} bind:value={filterPath} />
<Select
containerClasses="filter-path"
showIndicator
items={fieldOptions}
bind:value={filterPath}
/>
<Select
containerClasses="filter-relation"
showIndicator
items={filterRelationOptions}
bind:value={filterRelation}
/>
Expand All @@ -97,9 +103,15 @@
<th>Sort</th>
<td>
<div class="horizontal">
<Select containerClasses="sort-field" items={fieldOptions} bind:value={sortPath} />
<Select
containerClasses="sort-path"
showIndicator
items={fieldOptions}
bind:value={sortPath}
/>
<Select
containerClasses="sort-direction"
showIndicator
items={sortDirectionOptions}
bind:value={sortDirection}
/>
Expand All @@ -111,9 +123,10 @@
<td>
<div class="horizontal">
<Select
containerClasses="projection-fields"
items={projectionOptions}
containerClasses="projection-paths"
isMulti
showIndicator
items={projectionOptions}
bind:value={projectionPaths}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const TRANSFORM_MODAL_OPTIONS = {
...SIMPLE_MODAL_OPTIONS,
styleWindow: {
...SIMPLE_MODAL_OPTIONS.styleWindow,
width: '600px'
width: '700px'
},
styleContent: {
overflow: 'auto', // TODO: would be more neat if the header is fixed instead of scrolls along
Expand Down

0 comments on commit c0375b1

Please sign in to comment.