Skip to content

Commit

Permalink
Merge pull request #26 from imjesusc/dev
Browse files Browse the repository at this point in the history
Fixed link and container layout for improved handling of long words.
  • Loading branch information
pheralb authored Apr 13, 2024
2 parents 3c824d5 + 99dad0d commit fef815c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/links/card-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const CardLink = ({ linkInfo, linkTags, tagsInfo }: CardLinkProps) => {
<div className="mb-1 flex w-full items-center justify-between space-x-2">
<ExternalLink
href={`/${linkInfo.slug}`}
className="flex items-center space-x-[1px] font-medium transition-opacity duration-75 hover:opacity-80"
className="block space-x-[1px] overflow-hidden truncate font-medium transition-opacity duration-75 hover:opacity-80"
>
<span className="text-sm opacity-40">/</span>
<span>{linkInfo.slug}</span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/links/copy-qr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const CopyQR = ({ linkInfo }: CopyQRProps) => {
<DialogTitle>Copy QR Code</DialogTitle>
<DialogDescription>{linkInfo.description}</DialogDescription>
</DialogHeader>
<div className="my-3 flex flex-col items-center justify-center space-y-3">
<div className="my-3 flex flex-col overflow-hidden items-center justify-center space-y-3">
<div className="rounded-lg border border-neutral-100 p-2 shadow-md dark:border-neutral-800">
<QRCode
id="qr-code"
Expand All @@ -69,7 +69,7 @@ const CopyQR = ({ linkInfo }: CopyQRProps) => {
viewBox={`0 0 128 128`}
/>
</div>
<p className="font-mono font-medium">{`/${linkInfo.slug}`}</p>
<p className="font-mono font-medium w-full block truncate">{`/${linkInfo.slug}`}</p>
</div>
<DialogFooter>
<DropdownMenu>
Expand Down
4 changes: 2 additions & 2 deletions src/components/links/edit-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ const EditLink = (props: EditLinkProps) => {
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>{props.trigger}</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogHeader className="overflow-hidden">
<DialogTitle>Edit link</DialogTitle>
<DialogDescription className="truncate">
<DialogDescription className="block truncate">
/{props.link.slug}
</DialogDescription>
</DialogHeader>
Expand Down

0 comments on commit fef815c

Please sign in to comment.