Skip to content

Commit

Permalink
make ha-card header/footer overflow stricter to allow non-graph overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Dec 22, 2024
1 parent 1969f1b commit 19ee590
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 34 deletions.
Empty file modified build.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion githooks/pre-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():
# Save template to buffer and then read to get yaml as string
buffer = StringIO()
yaml.dump(element_yaml, buffer)
output[theme_name][f'card-mod-{element.replace('_', '-')}-yaml'] = buffer.getvalue().strip()
output[theme_name][f'card-mod-{element.replace("_", "-")}-yaml'] = buffer.getvalue().strip()

yaml.dump(output, dist)

Expand Down
6 changes: 3 additions & 3 deletions src/common/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ hui-entities-toggle {
top: 8px !important;
}

/* Fix Header/Footer Overflow */
.header {
/* Fix header/footer graph overflow */
.header:has(hui-graph-header-footer) {
border-top-left-radius: var(--ha-card-border-radius);
border-top-right-radius: var(--ha-card-border-radius);
overflow: hidden;
}
.footer {
.footer:has(hui-graph-header-footer) {
border-bottom-left-radius: var(--ha-card-border-radius);
border-bottom-right-radius: var(--ha-card-border-radius);
overflow: hidden;
Expand Down
Loading

0 comments on commit 19ee590

Please sign in to comment.