Skip to content

Commit

Permalink
fixed bar spacing inside horizontal stack
Browse files Browse the repository at this point in the history
Signed-off-by: Gluwc <[email protected]>
  • Loading branch information
Gluwc committed May 2, 2020
1 parent 6372818 commit e21d15a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/bar-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ export class BarCard extends LitElement {
.header=${this._config.title ? this._config.title : null}
style="${this._config.entity_row ? 'background: #0000; box-shadow: none;' : ''}"
>
<div id="states" class="card-content" style="${this._config.entity_row ? 'padding: 0px;' : ''}">
<div
id="states"
class="card-content"
style="${this._config.entity_row ? 'padding: 0px;' : ''} ${this._config.direction == 'up'
? ''
: 'flex-grow: 0;'}"
>
${this._createBarArray()}
</div>
</ha-card>
Expand Down
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 = '3.1.5';
export const CARD_VERSION = '3.1.6';

0 comments on commit e21d15a

Please sign in to comment.