mirror of https://github.com/status-im/consul.git
5fb9df1640
* Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at <Blog URL>, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
README.mdx | ||
index.hbs | ||
index.js |
README.mdx
# Providers::Dimension A provider component that helps you to make a container fill the remaining space of the viewport. Usually, you would **use flexbox** to do so but for scenarios where this isn't possible you can use this component to make it easy to take up the remaining space. ```hbs <Providers::Dimension as |p|> <div style={{p.data.fillRemainingHeightStyle}}> Fill remaining space </div> </Providers::Dimension> ``` By default, this component will take up the remaining viewport space by taking the top of itself as the top-boundary and the `footer[role="contentinfo"]` as the bottom-boundary. In terms of Consul-UI this means _take up the entire space but stop at the footer that holds the consul version info at the bottom of the screen_. You can pass a different `bottomBoundary` if need be: ```hbs preview-template <div class='h-48 relative flex border border-hds-consul-foreground'> <div class='h-full w-24 relative'> <div class='absolute bottom-0 w-full h-12 bg-hds-consul-gradient-primary-start flex items-center justify-center' id='bottom-boundary' > Boundary </div> </div> <div class='flex-1'> <Providers::Dimension @bottomBoundary='#bottom-boundary' as |p|> <div style={{p.data.fillRemainingHeightStyle}} class='bg-hds-consul-surface flex items-center justify-center' > We could use flexbox here instead </div> </Providers::Dimension> </div> </div> ```