Skip to content

Commit e21d15a

Browse files
committed
fixed bar spacing inside horizontal stack
Signed-off-by: Gluwc <[email protected]>
1 parent 6372818 commit e21d15a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/bar-card.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ export class BarCard extends LitElement {
8888
.header=${this._config.title ? this._config.title : null}
8989
style="${this._config.entity_row ? 'background: #0000; box-shadow: none;' : ''}"
9090
>
91-
<div id="states" class="card-content" style="${this._config.entity_row ? 'padding: 0px;' : ''}">
91+
<div
92+
id="states"
93+
class="card-content"
94+
style="${this._config.entity_row ? 'padding: 0px;' : ''} ${this._config.direction == 'up'
95+
? ''
96+
: 'flex-grow: 0;'}"
97+
>
9298
${this._createBarArray()}
9399
</div>
94100
</ha-card>

src/const.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const CARD_VERSION = '3.1.5';
1+
export const CARD_VERSION = '3.1.6';

0 commit comments

Comments
 (0)