Add fullWidth option

This commit is contained in:
2025-07-10 21:47:39 +02:00
parent 916bcbea80
commit 5232c22642
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tp/tp-settings-grid",
"version": "1.0.0",
"version": "1.1.0",
"description": "",
"main": "tp-settings-grid.js",
"scripts": {

View File

@ -15,6 +15,15 @@ class TpSettingsGridLine extends LitElement {
align-items: center;
}
:host([fullWidth]) {
grid-column: 1 / -1;
display: block;
}
:host([fullWidth]) .label {
margin-bottom: 10px;
}
:host([labelTop]) .label {
align-self: flex-start;
}