fix(calendar): tighten modal and attachment rendering

This commit is contained in:
Rafael Foster
2026-04-29 22:44:25 -03:00
parent 64cc6455ed
commit 4aa9bc2a48
7 changed files with 224 additions and 82 deletions
+61
View File
@@ -445,6 +445,67 @@
word-break: break-word;
}
.document-dropzone {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-2);
min-height: 148px;
padding: var(--space-5);
border: 1.5px dashed color-mix(in srgb, var(--module-calendar) 48%, var(--color-border));
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--module-calendar) 7%, var(--color-surface));
color: var(--color-text-secondary);
text-align: center;
cursor: pointer;
transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}
.document-dropzone:hover,
.document-dropzone--active {
border-color: var(--module-calendar);
background: color-mix(in srgb, var(--module-calendar) 12%, var(--color-surface));
}
.document-dropzone--active {
transform: translateY(-1px);
}
.document-dropzone__icon {
width: 42px;
height: 42px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
color: var(--module-calendar);
background: color-mix(in srgb, var(--module-calendar) 15%, transparent);
}
.document-dropzone__icon svg {
width: 22px;
height: 22px;
}
.document-dropzone__title {
color: var(--color-text-primary);
font-weight: var(--font-weight-semibold);
}
.document-dropzone__hint,
.document-dropzone__file {
max-width: 100%;
color: var(--color-text-tertiary);
font-size: var(--text-xs);
overflow-wrap: anywhere;
}
.document-dropzone__file {
color: var(--module-calendar);
font-weight: var(--font-weight-medium);
}
/* --------------------------------------------------------
* Tagesansicht
* -------------------------------------------------------- */
+9 -5
View File
@@ -922,9 +922,13 @@
background-color: var(--color-overlay);
z-index: var(--z-modal);
display: flex;
align-items: flex-end;
align-items: center;
justify-content: center;
overflow: hidden;
padding: max(var(--space-3), env(safe-area-inset-top))
max(var(--space-3), env(safe-area-inset-right))
max(var(--space-3), env(safe-area-inset-bottom))
max(var(--space-3), env(safe-area-inset-left));
animation: modal-overlay-in 0.2s ease forwards;
/* iOS Safari: click-Events auf non-interactive divs erfordern cursor:pointer */
cursor: pointer;
@@ -932,7 +936,6 @@
@media (min-width: 768px) {
.modal-overlay {
align-items: center;
padding: var(--space-6);
}
}
@@ -940,11 +943,11 @@
.modal-panel {
background-color: var(--color-surface);
width: 100%;
max-height: 90dvh;
max-height: calc(100dvh - (2 * var(--space-3)) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
overflow: hidden;
display: flex;
flex-direction: column;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
border-radius: var(--radius-lg);
border: 1px solid var(--color-border-subtle);
box-shadow: var(--shadow-lg);
animation: modal-slide-up 0.25s var(--ease-out) forwards;
@@ -955,6 +958,7 @@
@media (min-width: 768px) {
.modal-panel {
max-width: 520px;
max-height: calc(100dvh - (2 * var(--space-6)));
border-radius: var(--radius-lg);
animation: modal-scale-in 0.2s var(--ease-out) forwards;
}
@@ -1106,7 +1110,7 @@
@keyframes sheet-out {
from { transform: translateY(0); }
to { transform: translateY(100%); }
to { transform: translateY(16px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {