Fix scrollbar issues in vertical stack card (#1394)

* Fix scrollbar issues in vertical stack card

* Update vstack
This commit is contained in:
c727 2018-07-03 05:51:13 +02:00 committed by GitHub
parent 20d6f6d530
commit 536b1e7b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -10,13 +10,17 @@ class HuiHorizontalStackCard extends PolymerElement {
<style> <style>
#root { #root {
display: flex; display: flex;
margin-left: -4px;
margin-right: -4px;
} }
#root > * { #root > * {
flex: 1 1 0; flex: 1 1 0;
margin: 0 4px; margin: 0 4px;
} }
#root > *:first-child {
margin-left: 0;
}
#root > *:last-child {
margin-right: 0;
}
</style> </style>
<div id="root"></div> <div id="root"></div>
`; `;

View File

@ -11,12 +11,16 @@ class HuiVerticalStackCard extends PolymerElement {
#root { #root {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-top: -4px;
margin-bottom: -8px;
} }
#root > * { #root > * {
margin: 4px 0 8px 0; margin: 4px 0 8px 0;
} }
#root > *:first-child {
margin-top: 0;
}
#root > *:last-child {
margin-bottom: 0;
}
</style> </style>
<div id="root"></div> <div id="root"></div>
`; `;