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

Setting 0 height as an inline style

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-10-10 14:41:27 +03:00
parent cc8db57def
commit 1b41754188
3 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ exports[`cluster modal elements given custom cluster modal available renders 1`]
<div>
<div
class="clusterModals"
style="height: 0px;"
>
<div
data-testid="test-modal"
@ -521,6 +522,7 @@ exports[`cluster modal elements given custom cluster modal not available renders
<div>
<div
class="clusterModals"
style="height: 0px;"
/>
<div
class="Notifications flex column align-flex-end"

View File

@ -1,4 +1,3 @@
.clusterModals {
height: 0;
overflow: visible;
}

View File

@ -15,7 +15,7 @@ interface Dependencies {
export const NonInjectedClusterModals = ({ clusterModals }: Dependencies) => {
return (
<div className={styles.clusterModals}>
<div className={styles.clusterModals} style={{ height: 0 }}>
{clusterModals.map((modal) => {
return modal.visible ? <modal.Component key={modal.id} /> : null;
})}