fix(web): keep jalali day cells inside calendar panel

This commit is contained in:
2026-10-25 10:05:16 +03:30
parent 48815852fc
commit 546a7a7e46
+32 -14
View File
@@ -867,10 +867,11 @@ onBeforeUnmount(() => {
.panel { .panel {
position: fixed; position: fixed;
z-index: 120; z-index: 120;
box-sizing: border-box;
width: min(20.5rem, calc(100vw - 16px)); width: min(20.5rem, calc(100vw - 16px));
/* تقویم باید یکجا دیده شود؛ اسکرول داخل پنل گیج‌کننده است */ /* تقویم باید یکجا دیده شود؛ اسکرول داخل پنل گیج‌کننده است */
max-height: none; max-height: none;
overflow: visible; overflow: hidden;
background: #fff; background: #fff;
border-radius: var(--radius); border-radius: var(--radius);
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18); box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
@@ -921,19 +922,22 @@ onBeforeUnmount(() => {
padding: 0.25rem 0; padding: 0.25rem 0;
} }
.pick-cell { .panel :deep(.pick-cell.ant-btn) {
height: 44px; width: 100% !important;
min-width: 0 !important;
height: 44px !important;
padding-inline: 0 !important;
border-radius: var(--radius); border-radius: var(--radius);
color: #0f172a; color: #0f172a;
font-size: 0.85rem; font-size: 0.85rem;
} }
.pick-cell.today { .panel :deep(.pick-cell.today) {
box-shadow: inset 0 0 0 1px #99f6e4; box-shadow: inset 0 0 0 1px #99f6e4;
} }
.pick-cell.on, .panel :deep(.pick-cell.on),
.pick-cell:hover { .panel :deep(.pick-cell.ant-btn:hover) {
background: #0d9488; background: #0d9488;
color: #fff; color: #fff;
} }
@@ -957,8 +961,10 @@ onBeforeUnmount(() => {
.week, .week,
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(7, 1fr); grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 0.15rem; gap: 0.15rem;
width: 100%;
min-width: 0;
} }
.week span { .week span {
@@ -968,31 +974,43 @@ onBeforeUnmount(() => {
padding-bottom: 0.25rem; padding-bottom: 0.25rem;
} }
.day { .panel :deep(.day.ant-btn) {
height: 34px; width: 100% !important;
min-width: 0 !important;
height: 34px !important;
padding: 0 !important;
border: 0; border: 0;
border-radius: var(--radius); border-radius: var(--radius);
background: none; background: none;
color: #0f172a; color: #0f172a;
font: inherit; font: inherit;
font-size: 0.82rem;
line-height: 1;
cursor: pointer; cursor: pointer;
} }
.day.mute { .panel :deep(.day.ant-btn > span) {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
}
.panel :deep(.day.mute) {
color: #cbd5e1; color: #cbd5e1;
} }
.day.today { .panel :deep(.day.today) {
box-shadow: inset 0 0 0 1px #99f6e4; box-shadow: inset 0 0 0 1px #99f6e4;
} }
.day.on, .panel :deep(.day.on),
.day:hover { .panel :deep(.day.ant-btn:hover) {
background: #0d9488; background: #0d9488;
color: #fff; color: #fff;
} }
.day.mute:hover { .panel :deep(.day.mute:hover) {
background: #f1f5f9; background: #f1f5f9;
color: #64748b; color: #64748b;
} }