change stats-table style

This commit is contained in:
smanylov
2025-12-15 11:24:07 +07:00
parent 3334059df7
commit 72bd21c648
2 changed files with 31 additions and 5 deletions
+27 -3
View File
@@ -343,7 +343,20 @@ export default function TanstakFilesTable() {
<div className="flex flex-col w-[150px]">
<div className="text-sm font-medium mb-1">{t('date-filter')}:</div>
<DropDownList
value={dateFilter}
value={(() => {
switch (dateFilter) {
case 'all':
return t('all-dates')
case 'week':
return t('for-a-week')
case 'month':
return t('for-a-month')
case 'older':
return t('older-than-a-month')
default:
return t('today')
}
})()}
callBack={setDateFilter}
>
<li value="all">
@@ -364,10 +377,21 @@ export default function TanstakFilesTable() {
</DropDownList>
</div>
<div className="flex flex-col w-[150px]">
<div className="flex flex-col w-[160px]">
<div className="text-sm font-medium mb-1">{t('type-filter')}:</div>
<DropDownList
value={typeFilter}
value={(() => {
switch (typeFilter) {
case 'image':
return t('images')
case 'video':
return t('videos')
case 'audio':
return t('audios')
default:
return t('all-types')
}
})()}
callBack={setTypeFilter}
>
<li value="all">
+4 -2
View File
@@ -165,13 +165,15 @@
&.stats-header {
background: #f9fafb;
border-left: none;
font-size: 18px;
font-size: 16px;
font-weight: 500;
}
&.first-column {
font-size: 18px;
font-size: 16px;
justify-content: start;
padding-left: 20px;
font-weight: 500;
.icon {
color: var(--card-color-1);