Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent using a toggle in a row #121

Merged
merged 7 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '1.2.9';
export const CARD_VERSION = '1.2.10';
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 @@ -293,6 +293,9 @@ class RestrictionCard extends LitElement implements LovelaceCard {
display: flex;
color: var(--regular-lock-color);
}
#overlay:not(:has(.hidden)) + #card.card-row {
overflow-y: clip;
}
.blocked {
color: var(--blocked-lock-color) !important;
}
Expand Down
Loading