mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
feat(proxy): do not truncate the proxy node name when not enough width, closes #351
This commit is contained in:
parent
522be608a7
commit
a648f1e413
@ -26,7 +26,7 @@ export const ProxyNodeCard = (props: {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
class={twMerge(
|
class={twMerge(
|
||||||
'card card-bordered tooltip-bottom flex flex-col gap-1 border-neutral-focus bg-neutral p-2 text-neutral-content',
|
'card card-bordered tooltip-bottom flex flex-col justify-between gap-1 border-neutral-focus bg-neutral p-2 text-neutral-content',
|
||||||
isSelected && 'border-primary bg-primary-content text-primary',
|
isSelected && 'border-primary bg-primary-content text-primary',
|
||||||
onClick && 'cursor-pointer',
|
onClick && 'cursor-pointer',
|
||||||
)}
|
)}
|
||||||
@ -34,7 +34,7 @@ export const ProxyNodeCard = (props: {
|
|||||||
title={proxyName}
|
title={proxyName}
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between gap-2">
|
<div class="flex items-center justify-between gap-2">
|
||||||
<span class="truncate text-left text-sm">{proxyName}</span>
|
<span class="text-left text-sm">{proxyName}</span>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
class="btn-circle btn-ghost h-auto min-h-0 w-auto"
|
class="btn-circle btn-ghost h-auto min-h-0 w-auto"
|
||||||
@ -58,7 +58,7 @@ export const ProxyNodeCard = (props: {
|
|||||||
<div class="flex items-center justify-between gap-1">
|
<div class="flex items-center justify-between gap-1">
|
||||||
<div
|
<div
|
||||||
class={twMerge(
|
class={twMerge(
|
||||||
'truncate text-xs text-slate-500',
|
'text-xs text-slate-500',
|
||||||
isSelected && 'text-primary',
|
isSelected && 'text-primary',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user