1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Docs: add styling Custom Views block (#4760)

This commit is contained in:
Alex Andreev 2022-01-27 16:18:48 +03:00 committed by GitHub
parent a2b9153e52
commit 205225f6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. 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 ## Entities
An entity is the data within the catalog. An entity is the data within the catalog.