From 21e21a3a171d85a3bc7ef0ae268acddfc084f7ca Mon Sep 17 00:00:00 2001 From: Hikmet Date: Tue, 26 Mar 2024 14:15:13 +0300 Subject: [PATCH] Make draggable board item dynamic sized --- src/components/dnd/styles.module.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dnd/styles.module.scss b/src/components/dnd/styles.module.scss index 60fdc39..55d31fe 100644 --- a/src/components/dnd/styles.module.scss +++ b/src/components/dnd/styles.module.scss @@ -22,7 +22,7 @@ $board-item-height: 1.8rem; .board-item { height: $board-item-height; - width: 10rem; + width: max-content; min-width: 10rem; text-align: center; font-size: 0.9rem; @@ -47,14 +47,14 @@ $board-item-height: 1.8rem; word-break: keep-all; overflow: hidden; flex-grow: 1; - margin: 0; + margin-inline: 0.7rem !important; } } .droppable { box-sizing: content-box; display: inline-block; - width: 10rem; + min-width: 10rem; height: $board-item-height; vertical-align: middle; border: 1px solid gv.$neutral-color;