Skip to content

Commit 48b4df4

Browse files
authored
Use space tokens in ha-quick-bar (#27663)
1 parent 8cdcd9c commit 48b4df4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/dialogs/quick-bar/ha-quick-bar.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,8 @@ export class QuickBar extends LitElement {
10111011
--mdc-dialog-max-width: 800px;
10121012
--mdc-dialog-min-width: 500px;
10131013
--dialog-surface-position: fixed;
1014-
--dialog-surface-top: 40px;
1015-
--mdc-dialog-max-height: calc(100% - 72px);
1014+
--dialog-surface-top: var(--ha-space-10);
1015+
--mdc-dialog-max-height: calc(100% - var(--ha-space-18));
10161016
}
10171017
}
10181018
@@ -1055,8 +1055,8 @@ export class QuickBar extends LitElement {
10551055
}
10561056
10571057
span.command-text {
1058-
margin-left: 8px;
1059-
margin-inline-start: 8px;
1058+
margin-left: var(--ha-space-2);
1059+
margin-inline-start: var(--ha-space-2);
10601060
margin-inline-end: initial;
10611061
direction: var(--direction);
10621062
}
@@ -1069,17 +1069,17 @@ export class QuickBar extends LitElement {
10691069
ha-md-list-item.two-line {
10701070
--md-list-item-one-line-container-height: 64px;
10711071
--md-list-item-two-line-container-height: 64px;
1072-
--md-list-item-top-space: 8px;
1073-
--md-list-item-bottom-space: 8px;
1072+
--md-list-item-top-space: var(--ha-space-2);
1073+
--md-list-item-bottom-space: var(--ha-space-2);
10741074
}
10751075
10761076
ha-md-list-item.three-line {
10771077
width: 100%;
10781078
--md-list-item-one-line-container-height: 72px;
10791079
--md-list-item-two-line-container-height: 72px;
10801080
--md-list-item-three-line-container-height: 72px;
1081-
--md-list-item-top-space: 8px;
1082-
--md-list-item-bottom-space: 8px;
1081+
--md-list-item-top-space: var(--ha-space-2);
1082+
--md-list-item-bottom-space: var(--ha-space-2);
10831083
}
10841084
10851085
ha-md-list-item .code {
@@ -1104,11 +1104,11 @@ export class QuickBar extends LitElement {
11041104
}
11051105
11061106
ha-tip {
1107-
padding: 20px;
1107+
padding: var(--ha-space-5);
11081108
}
11091109
11101110
.nothing-found {
1111-
padding: 16px 0px;
1111+
padding: var(--ha-space-4) var(--ha-space-0);
11121112
text-align: center;
11131113
}
11141114

0 commit comments

Comments
 (0)