Fixed the resize issue

This commit is contained in:
2026-07-14 08:02:11 +05:30
parent 6fd90ef7d4
commit fb0a78a405
17 changed files with 78 additions and 14 deletions

View File

@@ -63,9 +63,9 @@
background: rgba(255, 255, 255, 0.85);
border: 1px solid var(--surface-border);
border-radius: 2px;
cursor: grab;
transition: box-shadow 0.2s, border-color 0.2s;
overflow: hidden;
resize: both;
display: flex;
flex-direction: column;
justify-content: center;
@@ -107,6 +107,58 @@
&.table_header { border-color: #F59E0B; }
&.total { border-color: #10B981; }
&.tax { border-color: #EF4444; }
.drag-handle {
position: absolute;
top: 2px;
left: 2px;
font-size: 0.6rem;
color: var(--text-color-secondary);
background: rgba(255, 255, 255, 0.9);
border-radius: 2px;
padding: 2px;
cursor: grab;
opacity: 0;
transition: opacity 0.2s;
z-index: 20;
&:active {
cursor: grabbing;
}
&:hover {
color: var(--primary-color);
background: var(--primary-50);
}
}
&:hover .drag-handle {
opacity: 1;
}
.close-icon {
position: absolute;
top: 2px;
right: 2px;
font-size: 0.6rem;
color: var(--text-color-secondary);
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
padding: 2px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
z-index: 20;
&:hover {
color: var(--red-500);
background: var(--red-50);
}
}
&:hover .close-icon {
opacity: 1;
}
}
/* Template Mapping Side */