From 9db1f3a120fc267fc8e4a7bbed8fa6d0b283877d Mon Sep 17 00:00:00 2001 From: Dave T <17680170+davet2001@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:15:37 +0100 Subject: [PATCH] Minor grammar fixes in custom card docs (#2381) * Minor grammar fixes in custom card docs * Adjust language --------- Co-authored-by: Martin Hjelmare --- docs/frontend/custom-ui/custom-card.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/frontend/custom-ui/custom-card.md b/docs/frontend/custom-ui/custom-card.md index 0aee9a83..c3866de0 100644 --- a/docs/frontend/custom-ui/custom-card.md +++ b/docs/frontend/custom-ui/custom-card.md @@ -51,7 +51,7 @@ class ContentCardExample extends HTMLElement { return 3; } - // The rules for your card for sizing your card if the grid in section view + // The rules for sizing your card in the grid in sections view getLayoutOptions() { return { grid_rows: 3, @@ -106,7 +106,7 @@ return customElements ### Sizing in sections view -You card can define a `getLayoutOptions` method that returns the min, max and default number of cells your card will take in the grid if your card is used if the [sections view](https://www.home-assistant.io/dashboards/sections/) +You can define a `getLayoutOptions` method that returns the min, max and default number of cells your card will take in the grid if your card is used in the [sections view](https://www.home-assistant.io/dashboards/sections/). If you don't define this method, the card will take 4 columns (full width) and will ignore the rows of the grid. A cell of the grid is defined with the following dimension: