From f05b2691b8ea33e4010d7056f8fd2358d5181b28 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 15 Aug 2024 14:18:35 +0100 Subject: [PATCH 1/3] Add docs for widget container height option See https://github.com/matrix-org/matrix-react-sdk/pull/12893 --- config.sample.json | 1 + docs/config.md | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/config.sample.json b/config.sample.json index 579b28619a6..0033b17ebac 100644 --- a/config.sample.json +++ b/config.sample.json @@ -22,6 +22,7 @@ "https://scalar-staging.vector.im/api", "https://scalar-staging.riot.im/scalar/api" ], + "default_widget_height": "280px", "default_country_code": "GB", "show_labs_settings": false, "features": {}, diff --git a/docs/config.md b/docs/config.md index fa6ee5b07cf..03ace05c33b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -452,6 +452,11 @@ If you would like to use Scalar, the integration manager maintained by Element, } ``` +For widgets in general (from an integration manager or not) there is also: + * `default_widget_container_height` + +This controls the height that the top widget panel initially appears as and is the height in pixels, default 280. + ## Administrative options If you would like to include a custom message when someone is reporting an event, set the following Markdown-capable field: From 0935e48b1c6ddc95c51ffb3044910331c3406832 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 15 Aug 2024 14:59:09 +0100 Subject: [PATCH 2/3] Prettier --- docs/config.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/config.md b/docs/config.md index 03ace05c33b..7e6c4f4cb55 100644 --- a/docs/config.md +++ b/docs/config.md @@ -453,7 +453,8 @@ If you would like to use Scalar, the integration manager maintained by Element, ``` For widgets in general (from an integration manager or not) there is also: - * `default_widget_container_height` + +- `default_widget_container_height` This controls the height that the top widget panel initially appears as and is the height in pixels, default 280. From 1e9112aee8c5f8c7cc1fd0584a60489a8b704dee Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Aug 2024 09:41:21 +0100 Subject: [PATCH 3/3] Fix sample config value --- config.sample.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.sample.json b/config.sample.json index 0033b17ebac..acca45aaf8f 100644 --- a/config.sample.json +++ b/config.sample.json @@ -22,7 +22,7 @@ "https://scalar-staging.vector.im/api", "https://scalar-staging.riot.im/scalar/api" ], - "default_widget_height": "280px", + "default_widget_height": 280, "default_country_code": "GB", "show_labs_settings": false, "features": {},