Skip to content

Commit

Permalink
Another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject authored Jun 14, 2019
1 parent f388506 commit a452fc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bar-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,12 @@ class BarCard extends HTMLElement {
}
#value_container_${id} {
position: relative;
display: flex;
display: ${config.show_minmax ? 'flex' : 'contents'};
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
text-align: ${textAlign};
${config.show_minmax ? 'text-align: center;' : ''};
${valueflexDirection};
}
#value_${id}, #min_value_${id}, #max_value_${id} {
Expand All @@ -613,8 +613,8 @@ class BarCard extends HTMLElement {
color: #FFF;
text-shadow: 1px 1px #0007;
white-space: nowrap;
flex-grow: 1;
text-align: ${textAlign};
${config.show_minmax ? 'flew-grow: 1;' : ''};
${config.show_minmax ? 'text-align: center;' : ''};
}
#value_${id} {
${valueStyle}
Expand Down

0 comments on commit a452fc5

Please sign in to comment.