Skip to content

Commit

Permalink
fix: Delay button width auto-adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequielnick committed Feb 7, 2025
1 parent d28d338 commit 8d88851
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/renderer/src/components/proxies/proxy-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ const ProxyItem: React.FC<Props> = (props) => {
color={delayColor(delay)}
onPress={onDelay}
variant="light"
className="h-full text-sm ml-auto -mt-0.5"
className="h-full text-sm ml-auto -mt-0.5 px-2 relative w-min whitespace-nowrap"
>
{delayText(delay)}
<div className="w-full h-full flex items-center">
{delayText(delay)}
</div>
</Button>
</div>
</div>
Expand Down Expand Up @@ -144,9 +146,11 @@ const ProxyItem: React.FC<Props> = (props) => {
color={delayColor(delay)}
onPress={onDelay}
variant="light"
className="h-full p-0 text-sm"
className="h-[24px] text-sm px-2 relative w-min whitespace-nowrap"
>
{delayText(delay)}
<div className="w-full h-full flex items-center">
{delayText(delay)}
</div>
</Button>
</div>
</div>
Expand Down

0 comments on commit 8d88851

Please sign in to comment.