Add fullWidth option
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-settings-grid",
|
"name": "@tp/tp-settings-grid",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-settings-grid.js",
|
"main": "tp-settings-grid.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -15,6 +15,15 @@ class TpSettingsGridLine extends LitElement {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host([fullWidth]) {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host([fullWidth]) .label {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
:host([labelTop]) .label {
|
:host([labelTop]) .label {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user