Refine DashboardWidget and LoggedInView styles: Adjust transition effects and dragging state in DashboardWidget for improved visual feedback. Update grid row height in LoggedInView for better responsiveness and enhance drop indicator styling for a more polished user experience.

This commit is contained in:
Torsten Schulz (local)
2026-01-30 10:44:46 +01:00
parent 3999b17e88
commit 323b051355
2 changed files with 9 additions and 23 deletions

View File

@@ -264,12 +264,11 @@ export default {
border-radius: 8px; border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.06); box-shadow: 0 1px 3px rgba(0,0,0,0.06);
overflow: hidden; overflow: hidden;
transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; transition: opacity 0.2s ease, box-shadow 0.2s ease;
} }
.dashboard-widget.is-dragging { .dashboard-widget.is-dragging {
opacity: 0.5; opacity: 0.6;
box-shadow: 0 8px 24px rgba(0,0,0,0.25); box-shadow: 0 4px 12px rgba(0,0,0,0.2);
transform: rotate(2deg);
cursor: grabbing; cursor: grabbing;
} }

View File

@@ -400,7 +400,7 @@ export default {
.dashboard-grid { .dashboard-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
grid-auto-rows: 420px; grid-auto-rows: 200px;
gap: 20px; gap: 20px;
} }
@@ -422,11 +422,10 @@ export default {
outline: 2px dashed #0d6efd; outline: 2px dashed #0d6efd;
outline-offset: 4px; outline-offset: 4px;
border-radius: 8px; border-radius: 8px;
background-color: rgba(13, 110, 253, 0.05);
} }
.dashboard-grid-cell.drag-source { .dashboard-grid-cell.drag-source {
opacity: 0.4; opacity: 0.5;
} }
.dashboard-drop-indicator { .dashboard-drop-indicator {
@@ -434,26 +433,14 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
min-height: 0; min-height: 0;
padding: 0; padding: 8px 0;
} }
.drop-indicator-line { .drop-indicator-line {
width: 100%; width: 100%;
height: 3px; height: 2px;
background: linear-gradient(90deg, transparent, #0d6efd, transparent); background-color: #0d6efd;
border-radius: 2px; border-radius: 1px;
animation: pulse-drop-indicator 1.5s ease-in-out infinite;
}
@keyframes pulse-drop-indicator {
0%, 100% {
opacity: 0.5;
transform: scaleX(0.8);
}
50% {
opacity: 1;
transform: scaleX(1);
}
} }
.dashboard-widget-edit { .dashboard-widget-edit {