mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 01:39:13 +00:00
feat(releases): show indexer name instead of identifier (#1706)
* feat(releases): show indexer name instead of identifier * feat(releases): remove log in Cell * feat(releases): update Dashboard recent releases * fix(releases): db tests * fix(releases): remove unused code * fix(releases): remove more unused code * fix(releases): remove even more unused code --------- Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
54eab05f1f
commit
fd90020400
7 changed files with 76 additions and 200 deletions
|
@ -110,23 +110,23 @@ export const AgeCell = ({value}: CellProps<Release>) => (
|
|||
</div>
|
||||
);
|
||||
|
||||
export const IndexerCell = ({value}: CellProps<Release>) => (
|
||||
<div
|
||||
className={classNames(
|
||||
"py-3 text-sm font-medium box-content text-gray-900 dark:text-gray-300",
|
||||
"max-w-[96px] sm:max-w-[216px] md:max-w-[360px] lg:max-w-[640px] xl:max-w-[840px]"
|
||||
)}
|
||||
>
|
||||
<Tooltip
|
||||
requiresClick
|
||||
label={value}
|
||||
maxWidth="max-w-[90vw]"
|
||||
export const IndexerCell = (props: CellProps<Release>) => (
|
||||
<div
|
||||
className={classNames(
|
||||
"py-3 text-sm font-medium box-content text-gray-900 dark:text-gray-300",
|
||||
"max-w-[96px] sm:max-w-[216px] md:max-w-[360px] lg:max-w-[640px] xl:max-w-[840px]"
|
||||
)}
|
||||
>
|
||||
<Tooltip
|
||||
requiresClick
|
||||
label={props.row.original.indexer.name ? props.row.original.indexer.name : props.row.original.indexer.identifier}
|
||||
maxWidth="max-w-[90vw]"
|
||||
>
|
||||
<span className="whitespace-pre-wrap break-words">
|
||||
{value}
|
||||
{props.row.original.indexer.name ? props.row.original.indexer.name : props.row.original.indexer.identifier}
|
||||
</span>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</Tooltip>
|
||||
</div>
|
||||
);
|
||||
|
||||
export const TitleCell = ({value}: CellProps<Release>) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue