From 4e49549cac9bde2ae1b7f410fe977568f8039892 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 4 Sep 2024 23:43:26 -0700 Subject: [PATCH] fix padding during magnified --- frontend/layout/lib/tilelayout.less | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/frontend/layout/lib/tilelayout.less b/frontend/layout/lib/tilelayout.less index c03ab478..9a339bbf 100644 --- a/frontend/layout/lib/tilelayout.less +++ b/frontend/layout/lib/tilelayout.less @@ -87,6 +87,10 @@ z-index: var(--zindex-layout-last-magnified-node); } + .tile-leaf { + overflow: hidden; + } + .tile-preview-container { position: absolute; top: 10000px; @@ -105,15 +109,8 @@ backdrop-filter: blur(8px); } - .tile-leaf { - overflow: hidden; - } - - &:not(:only-child), - &:not(.magnified) { - .tile-leaf { - padding: calc(var(--gap-size-px) / 2); - } + &:not(:only-child, .magnified) .tile-leaf { + padding: calc(var(--gap-size-px) / 2); } }