Skip to content

Commit

Permalink
feat(proxy): do not truncate the proxy node name when not enough width,
Browse files Browse the repository at this point in the history
closes #351
  • Loading branch information
kunish committed Oct 19, 2023
1 parent 522be60 commit a648f1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ProxyNodeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export const ProxyNodeCard = (props: {
return (
<div
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',
onClick && 'cursor-pointer',
)}
onClick={onClick}
title={proxyName}
>
<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
class="btn-circle btn-ghost h-auto min-h-0 w-auto"
Expand All @@ -58,7 +58,7 @@ export const ProxyNodeCard = (props: {
<div class="flex items-center justify-between gap-1">
<div
class={twMerge(
'truncate text-xs text-slate-500',
'text-xs text-slate-500',
isSelected && 'text-primary',
)}
>
Expand Down

0 comments on commit a648f1e

Please sign in to comment.