Skip to content

Commit c8204ab

Browse files
authored
Merge pull request #19047 from Stropdasman/switch-save-to-new-action-button
Switch Save button to ActionButton to fix icon spacing in query editor
2 parents bed91bb + ec1329d commit c8204ab

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

packages/builder/src/components/integration/QueryViewer.svelte

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
import { goto as gotoStore } from "@roxi/routify"
33
import { datasources, integrations, queries } from "@/stores/builder"
44
import {
5-
Icon,
65
Select,
76
Input,
87
Label,
98
notifications,
109
Heading,
1110
Body,
1211
Divider,
13-
Button,
1412
ActionButton,
1513
Checkbox,
1614
} from "@budibase/bbui"
@@ -259,7 +257,8 @@
259257
Run query
260258
</ActionButton>
261259
<div class="tooltip" title="Run your query to enable saving">
262-
<Button
260+
<ActionButton
261+
icon="floppy-disk"
263262
on:click={async () => {
264263
const response = await saveQuery()
265264

@@ -277,11 +276,9 @@
277276
nameError ||
278277
rows.length === 0
279278
)}
280-
overBackground
281279
>
282-
<Icon size="S" name="floppy-disk" />
283280
Save
284-
</Button>
281+
</ActionButton>
285282
</div>
286283
</div>
287284
</div>
@@ -524,21 +521,21 @@
524521
color: var(--ink);
525522
}
526523
527-
.controls :global(.is-disabled) {
524+
.controls :global(.disabled) {
528525
pointer-events: none;
529526
background-color: transparent;
530527
color: var(--grey-3);
531528
}
532529
530+
.controls :global(.disabled i) {
531+
color: var(--grey-3);
532+
}
533+
533534
.controls :global(span) {
534535
display: flex;
535536
align-items: center;
536537
}
537538
538-
.controls :global(.icon) {
539-
margin-right: 8px;
540-
}
541-
542539
.configField {
543540
display: grid;
544541
grid-template-columns: 20% 1fr;

0 commit comments

Comments
 (0)