Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add full_size option to readme and visual editor #107

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading