From c91cae9463f17f1b7848eadd97a4e0f7bbe07cf7 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 31 Jul 2024 13:37:20 -0700 Subject: [PATCH] Fix some more improper border radii (#184) --- frontend/app/block/block.less | 16 +--------------- frontend/layout/lib/tilelayout.less | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/frontend/app/block/block.less b/frontend/app/block/block.less index ffe8795c..1b045829 100644 --- a/frontend/app/block/block.less +++ b/frontend/app/block/block.less @@ -10,7 +10,6 @@ height: 100%; overflow: hidden; min-height: 0; - position: relative; border-radius: var(--block-border-radius); .block-frame-icon { @@ -150,21 +149,9 @@ width: 100%; height: 100%; justify-content: space-between; - border-radius: 3px; align-items: center; padding-left: 7px; - &.hovered { - background: rgba(255, 255, 255, 0.2); - cursor: text; - transition: background 0.2s ease; - } - - &.focused { - outline: 2px solid rgba(88, 193, 66, 0.5); - background: #181818; - } - .input-wrapper { flex-grow: 1; @@ -278,9 +265,8 @@ border: 2px solid transparent; pointer-events: none; padding: 2px; - border-radius: var(--block-border-radius); + border-radius: calc(var(--block-border-radius) + 2px); } - &.block-focused { .block-mask { border: 2px solid var(--accent-color); diff --git a/frontend/layout/lib/tilelayout.less b/frontend/layout/lib/tilelayout.less index 951e3bfe..8ef09840 100644 --- a/frontend/layout/lib/tilelayout.less +++ b/frontend/layout/lib/tilelayout.less @@ -66,7 +66,7 @@ } .tile-node { - border-radius: var(--block-border-radius); + border-radius: calc(var(--block-border-radius) + 2px); overflow: hidden; &.dragging {