Skip to content

Commit

Permalink
fix: truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Oct 10, 2023
1 parent 312db9a commit 2144096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/vaults/components/details/actions/QuickActionsFrom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export function VaultDetailsQuickActionsFrom(): ReactElement {
shouldRender={!hasMultipleInputsToChooseFrom}
fallback={renderMultipleOptionsFallback()}>
<div className={'flex h-10 w-full items-center justify-between bg-neutral-300 px-2 text-base text-neutral-900 md:w-56 md:px-3'}>
<div className={'relative flex flex-row items-center'}>
<div className={'relative flex flex-row items-center truncate'}>
<div className={'h-6 w-6 flex-none rounded-full'}>{selectedFromIcon}</div>
<p className={'overflow-x-hidden text-ellipsis whitespace-nowrap pl-2 font-normal text-neutral-900 scrollbar-none'}>{selectedFromSymbol}</p>
<p className={'truncate whitespace-nowrap pl-2 font-normal text-neutral-900 scrollbar-none'}>{selectedFromSymbol}</p>
</div>
</div>
</Renderable>
Expand Down
6 changes: 2 additions & 4 deletions apps/vaults/components/details/actions/QuickActionsTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ export function VaultDetailsQuickActionsTo(): ReactElement {
shouldRender={!isActive || isDepositing || possibleOptionsTo.length === 1}
fallback={renderMultipleOptionsFallback()}>
<div className={'flex h-10 w-full items-center justify-between bg-neutral-300 px-2 text-base text-neutral-900 md:px-3'}>
<div className={'relative flex flex-row items-center'}>
<div className={'relative flex flex-row items-center truncate'}>
<div className={'h-6 w-6 flex-none rounded-full'}>{actionParams?.selectedOptionTo?.icon}</div>
<p className={'overflow-x-hidden text-ellipsis whitespace-nowrap pl-2 font-normal text-neutral-900 scrollbar-none'}>
{actionParams?.selectedOptionTo?.symbol}
</p>
<p className={'truncate whitespace-nowrap pl-2 font-normal text-neutral-900 scrollbar-none'}>{actionParams?.selectedOptionTo?.symbol}</p>
</div>
</div>
</Renderable>
Expand Down

0 comments on commit 2144096

Please sign in to comment.