style(ui): center align download list columns for better spacing

This commit is contained in:
NimBold
2026-06-28 23:47:44 +03:30
parent 64b98282d8
commit 19b4ab8a84
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ export const DownloadItem = React.memo<DownloadItemProps>(({
<div className="download-cell-right">
<span
className="truncate group-hover:hidden tabular-nums ml-auto"
className="truncate group-hover:hidden tabular-nums"
title={download.dateAdded ? new Date(download.dateAdded).toLocaleDateString() : '-'}
>
{download.dateAdded ? new Date(download.dateAdded).toLocaleDateString() : '-'}
+1 -1
View File
@@ -454,7 +454,7 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter }) => {
className={`${index === 5 ? 'download-cell-right' : ''} ${filter.startsWith('queue:') ? 'opacity-70 cursor-default' : 'cursor-pointer hover:text-text-primary transition-colors'} flex items-center justify-between`}
onClick={() => handleSort(label)}
>
<div className="flex items-center gap-1 w-full h-full select-none">
<div className={`flex items-center gap-1 w-full h-full select-none ${index > 0 ? 'justify-center' : ''}`}>
<span>{label}</span>
{sortConfig?.column === label && (
sortConfig.direction === 'asc' ? <ChevronUp size={14} /> : <ChevronDown size={14} />