mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix scrollbar issues in vertical stack card (#1394)
* Fix scrollbar issues in vertical stack card * Update vstack
This commit is contained in:
parent
20d6f6d530
commit
536b1e7b73
@ -10,13 +10,17 @@ class HuiHorizontalStackCard extends PolymerElement {
|
||||
<style>
|
||||
#root {
|
||||
display: flex;
|
||||
margin-left: -4px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
#root > * {
|
||||
flex: 1 1 0;
|
||||
margin: 0 4px;
|
||||
}
|
||||
#root > *:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
#root > *:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
</style>
|
||||
<div id="root"></div>
|
||||
`;
|
||||
|
@ -11,12 +11,16 @@ class HuiVerticalStackCard extends PolymerElement {
|
||||
#root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: -4px;
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
#root > * {
|
||||
margin: 4px 0 8px 0;
|
||||
}
|
||||
#root > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
#root > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
<div id="root"></div>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user