Skip to content

Commit

Permalink
fix: add full_size option to readme and visual editor (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
idaho committed Dec 13, 2023
1 parent 3f9a970 commit 2e5e0b4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ All the options are available in the lovelace editor but you can use `yaml` if y
| `entity` | string | Required | Entity |
| `layout` | string | Optional | Layout of the card. Vertical, horizontal and default layout are supported |
| `fill_container` | boolean | `false` | Fill container or not. Useful when card is in a grid, vertical or horizontal layout |
| `full_size` | boolean | `false` | Show the card without the default card margins |
| `next_days` | number | 2 | How many times the card will look into the future to find the next event |
| `settings` | [Settings](#settings) | Required | Settings to detect the kind of trash and how to display |

Expand Down
4 changes: 3 additions & 1 deletion src/cards/trash-card/trash-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const TRASH_LABELS = new Set([

// eslint-disable-next-line @typescript-eslint/naming-convention
const OTHER_LABELS = new Set([
'next_days'
'next_days',
'full_size'
]);

// eslint-disable-next-line @typescript-eslint/naming-convention
Expand Down Expand Up @@ -142,6 +143,7 @@ const SCHEMA: HaFormSchema[] = [
// eslint-disable-next-line @typescript-eslint/naming-convention
{ name: 'layout', selector: { mush_layout: {}}},
{ name: 'fill_container', selector: { boolean: {}}},
{ name: 'full_size', selector: { boolean: {}}},
{ name: 'next_days',
selector: { number: {
min: 1,
Expand Down
3 changes: 2 additions & 1 deletion src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"icon_color": "Icon-Farbe",
"layout": "Layout",
"fill_container": "Container ausfüllen",
"next_days": "Tage in der Zukunft"
"next_days": "Tage in der Zukunft",
"full_size": "Karte ohne Seitenrand"
},
"trash": {
"organic": {
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"icon_color": "Icon color",
"layout": "Layout",
"fill_container": "Fill container",
"next_days": "Days in the future"
"next_days": "Days in the future",
"full_size": "Card without margin"
},
"trash": {
"organic": {
Expand Down
3 changes: 2 additions & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"icon_color": "Couleur de l'icône",
"layout": "Disposition",
"fill_container": "Remplir le conteneur",
"next_days": "Jours dans le futur"
"next_days": "Jours dans le futur",
"full_size": "Carte sans marge"
},
"trash": {
"organic": {
Expand Down
3 changes: 2 additions & 1 deletion src/translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"icon_color": "Farba ikony",
"layout": "Rozloženie",
"fill_container": "Naplňte nádobu",
"next_days": "Dni v budúcnosti"
"next_days": "Dni v budúcnosti",
"full_size": "Karta bez marže"
},
"trash": {
"organic": {
Expand Down

0 comments on commit 2e5e0b4

Please sign in to comment.