change stats-table style
This commit is contained in:
@@ -343,7 +343,20 @@ export default function TanstakFilesTable() {
|
|||||||
<div className="flex flex-col w-[150px]">
|
<div className="flex flex-col w-[150px]">
|
||||||
<div className="text-sm font-medium mb-1">{t('date-filter')}:</div>
|
<div className="text-sm font-medium mb-1">{t('date-filter')}:</div>
|
||||||
<DropDownList
|
<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}
|
callBack={setDateFilter}
|
||||||
>
|
>
|
||||||
<li value="all">
|
<li value="all">
|
||||||
@@ -364,10 +377,21 @@ export default function TanstakFilesTable() {
|
|||||||
</DropDownList>
|
</DropDownList>
|
||||||
</div>
|
</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>
|
<div className="text-sm font-medium mb-1">{t('type-filter')}:</div>
|
||||||
<DropDownList
|
<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}
|
callBack={setTypeFilter}
|
||||||
>
|
>
|
||||||
<li value="all">
|
<li value="all">
|
||||||
|
|||||||
@@ -165,13 +165,15 @@
|
|||||||
&.stats-header {
|
&.stats-header {
|
||||||
background: #f9fafb;
|
background: #f9fafb;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.first-column {
|
&.first-column {
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
color: var(--card-color-1);
|
color: var(--card-color-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user