From 6939e4e7bfe9c106bc818a04430f1b0763972aa9 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Wed, 11 Jan 2023 13:04:41 +0100 Subject: [PATCH] Respect padding for drag preview size --- .../common/components/input-elements/drop-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/components/input-elements/drop-list.component.ts b/projects/common/components/input-elements/drop-list.component.ts index 42c37c0de..b159cf3f9 100644 --- a/projects/common/components/input-elements/drop-list.component.ts +++ b/projects/common/components/input-elements/drop-list.component.ts @@ -112,7 +112,7 @@ import { FormElementComponent } from '../../directives/form-element-component.di '.error-message {font-size: 75%; position: absolute; margin-left: 3px;}', '.list-item:active {cursor: grabbing;}', '.cdk-drag-preview {border-radius: 5px; box-shadow: 2px 2px 5px black;}', - '.cdk-drag-preview.text-preview {padding: 10px;}', + '.cdk-drag-preview.text-preview {padding: 10px; box-sizing: border-box;}', '.cdk-drop-list-dragging .cdk-drag {transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);}', '.highlight-receiver.cdk-drop-list-receiving {padding: 3px; border: 2px solid;}', '.cdk-drag-placeholder {background-color: #ccc !important;}', -- GitLab