From 205225f6a4300177dd39d022b35a64c5e16b1400 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 27 Jan 2022 16:18:48 +0300 Subject: [PATCH] Docs: add styling Custom Views block (#4760) --- docs/extensions/guides/catalog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/extensions/guides/catalog.md b/docs/extensions/guides/catalog.md index f428f323e0..6ddc5755c7 100644 --- a/docs/extensions/guides/catalog.md +++ b/docs/extensions/guides/catalog.md @@ -57,6 +57,14 @@ Will register a new view for the KubernetesCluster category, and because the pri The default list view has a priority of 50 and and custom views with priority (defaulting to 50) >= 50 will be displayed afterwards. +#### Styling Custom Views + +By default, custom view blocks are styled with [Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox). Some details comes from this. + +- To set fixed height of a custom block, use `max-height` css rule. +- To set flexible height, use `height`. +- Otherwise, custom view will have height of it's contents. + ## Entities An entity is the data within the catalog.