Skip to content

Commit

Permalink
Merge branch 'master' into fix-height
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar170975 authored Jan 12, 2025
2 parents c1e1988 + cc56761 commit 690f249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: restriction-card.js
path: dist/restriction-card.js
5 changes: 4 additions & 1 deletion src/restriction-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class RestrictionCard extends LitElement implements LovelaceCard {
element.hass = this._hass;

return html`
<div id="card">
<div id="card" class=${classMap({ 'card-row': this._config.row === true })}>
${element}
</div>
`;
Expand Down Expand Up @@ -299,6 +299,9 @@ class RestrictionCard extends LitElement implements LovelaceCard {
#card {
height: 100%;
}
#overlay:not(:has(.hidden)) + #card.card-row {
overflow-y: clip;
}
.blocked {
color: var(--blocked-lock-color) !important;
}
Expand Down

0 comments on commit 690f249

Please sign in to comment.