Skip to content

Commit

Permalink
Fix scaling in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Sep 25, 2021
1 parent 88b88e1 commit 4b42401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meteoalarm-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ class MeteoalarmCard extends LitElement

// Normal Size
narrow.style.display = 'none';
regular.style.display = 'block';
regular.style.display = 'flex';

// Narrow Headline Size
if(regular.scrollWidth > regular.clientWidth)
{
narrow.style.display = 'block';
narrow.style.display = 'flex';
regular.style.display = 'none';
}

Expand Down
5 changes: 5 additions & 0 deletions src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@ export default css`
overflow: hidden;
white-space: nowrap
}
.headline-narrow
{
display: none;
}
`;

0 comments on commit 4b42401

Please sign in to comment.