@@ -30,6 +30,7 @@ import "../../../layouts/hass-loading-screen";
3030import "../../../layouts/hass-subpage" ;
3131import type { HomeAssistant , Route } from "../../../types" ;
3232import "./components/supervisor-apps-card-content" ;
33+ import { supervisorAppsStyle } from "./resources/supervisor-apps-style" ;
3334
3435@customElement ( "ha-config-apps-installed" )
3536export class HaConfigAppsInstalled extends LitElement {
@@ -92,9 +93,6 @@ export class HaConfigAppsInstalled extends LitElement {
9293 suffix
9394 .filter = ${ this . _filter }
9495 @value-changed = ${ this . _handleSearchChange }
95- .label = ${ this . hass . localize (
96- "ui.panel.config.apps.installed.search"
97- ) }
9896 >
9997 </ search- input>
10098 </ div>
@@ -123,6 +121,7 @@ export class HaConfigAppsInstalled extends LitElement {
123121 <supervis or - apps- card- content
124122 .hass = ${ this . hass }
125123 .title = ${ addon . name }
124+ .stage = ${ addon . stage }
126125 .description = ${ addon . description }
127126 available
128127 .showTopbar = ${ addon . update_available }
@@ -225,66 +224,65 @@ export class HaConfigAppsInstalled extends LitElement {
225224 navigate ( "/config/apps/available" ) ;
226225 }
227226
228- static styles : CSSResultGroup = css `
229- : host {
230- dis play: block;
231- height: 100%;
232- background- color : var(--primary-background-color );
233- }
234-
235- ha- card {
236- cursor : pointer;
237- overflow : hidden;
238- direction : ltr;
239- }
227+ static styles : CSSResultGroup = [
228+ supervisorAppsStyle ,
229+ css `
230+ : host {
231+ dis play: block;
232+ height: 100%;
233+ background- color : var(--primary-background-color );
234+ }
240235
241- . search {
242- position : sticky ;
243- top : 0 ;
244- z-index : 2 ;
245- }
236+ ha - card {
237+ cursor : pointer ;
238+ overflow : hidden ;
239+ direction : ltr ;
240+ }
246241
247- search-input {
248- display : block ;
249- --mdc-text-field-fill-color : var ( --sidebar-background-color ) ;
250- --mdc-text-field-idle-line-color : var ( --divider-color ) ;
251- }
242+ . search {
243+ position : sticky ;
244+ top : 0 ;
245+ z-index : 2 ;
246+ }
252247
253- .content {
254- padding : var (--ha-space-4 );
255- margin-bottom : var (--ha-space-18 );
256- }
248+ search-input {
249+ display : block;
250+ --mdc-text-field-fill-color : var (--sidebar-background-color );
251+ --mdc-text-field-idle-line-color : var (--divider-color );
252+ }
257253
258- .card-group {
259- display : grid;
260- grid-template-columns : repeat (auto-fill, minmax (300px , 1fr ));
261- grid-gap : var (--ha-space-2 );
262- }
254+ .content {
255+ padding : var (--ha-space-4 );
256+ margin-bottom : var (--ha-space-18 );
257+ }
263258
264- .card-content {
265- padding : var (--ha-space-4 );
266- }
259+ .card-content {
260+ padding : var (--ha-space-4 );
261+ }
267262
268- button .link {
269- color : var (--primary-color );
270- background : none;
271- border : none;
272- padding : 0 ;
273- font : inherit;
274- text-align : left;
275- text-decoration : underline;
276- cursor : pointer;
277- }
263+ button .link {
264+ color : var (--primary-color );
265+ background : none;
266+ border : none;
267+ padding : 0 ;
268+ font : inherit;
269+ text-align : left;
270+ text-decoration : underline;
271+ cursor : pointer;
272+ }
278273
279- ha-fab {
280- position : fixed;
281- right : calc (var (--ha-space-4 ) + var (--safe-area-inset-right ));
282- bottom : calc (var (--ha-space-4 ) + var (--safe-area-inset-bottom ));
283- inset-inline-end : calc (var (--ha-space-4 ) + var (--safe-area-inset-right ));
284- inset-inline-start : initial;
285- z-index : 1 ;
286- }
287- ` ;
274+ ha-fab {
275+ position : fixed;
276+ right : calc (var (--ha-space-4 ) + var (--safe-area-inset-right ));
277+ bottom : calc (var (--ha-space-4 ) + var (--safe-area-inset-bottom ));
278+ inset-inline-end : calc (
279+ var (--ha-space-4 ) + var (--safe-area-inset-right )
280+ );
281+ inset-inline-start : initial;
282+ z-index : 1 ;
283+ }
284+ ` ,
285+ ] ;
288286}
289287
290288declare global {
0 commit comments