Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

Position filename/URL tooltips over the text, not the full row

Anmol Kapil70ebcf602858
diff --git a/src/renderer/src/screens/DownloadingScreen.tsx b/src/renderer/src/screens/DownloadingScreen.tsx
index 1e3cde8..d04b441 100644
--- a/src/renderer/src/screens/DownloadingScreen.tsx
+++ b/src/renderer/src/screens/DownloadingScreen.tsx
@@ -302,12 +302,12 @@ export function DownloadingScreen({ download }: { download: DownloadState }): Re
<Tooltip>
<TooltipTrigger
render={
- <div className="truncate font-sans text-[15px] leading-[1.3] font-semibold tracking-[-0.01em] text-foreground">
+ <div className="max-w-full truncate font-sans text-[15px] leading-[1.3] font-semibold tracking-[-0.01em] text-foreground inline-block">
{download.fileName}
</div>
}
/>
- <TooltipContent side="bottom">{download.fileName}</TooltipContent>
+ <TooltipContent>{download.fileName}</TooltipContent>
</Tooltip>
<div className="mt-1 flex items-center gap-[7px] font-mono text-[12.5px] leading-[1.2] tabular-nums text-[var(--text-secondary)]">
<span>
diff --git a/src/renderer/src/screens/ErrorScreen.tsx b/src/renderer/src/screens/ErrorScreen.tsx
index 3e21d77..0789b71 100644
--- a/src/renderer/src/screens/ErrorScreen.tsx
+++ b/src/renderer/src/screens/ErrorScreen.tsx
@@ -111,7 +111,7 @@ export function ErrorScreen({
<Tooltip>
<TooltipTrigger
render={
- <div className="truncate font-sans text-[12.5px] leading-[1.3] font-semibold text-foreground">
+ <div className="inline-block max-w-full truncate font-sans text-[12.5px] leading-[1.3] font-semibold text-foreground">
{download.fileName}
</div>
}
@@ -147,16 +147,18 @@ export function ErrorScreen({
{/* Footer with properly constrained, non-overflowing URL */}
<div className="flex min-w-0 items-center gap-3 border-t-[0.5px] border-t-[var(--footer-border)] bg-secondary px-5 py-[11px]">
- <Tooltip>
- <TooltipTrigger
- render={
- <div className="min-w-0 flex-1 truncate font-mono text-[11px] leading-none text-muted-foreground">
- {download.url}
- </div>
- }
- />
- <TooltipContent>{download.url}</TooltipContent>
- </Tooltip>
+ <div className="min-w-0 flex-1 truncate font-mono text-[11px] leading-none text-muted-foreground">
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <span className="inline-block max-w-full truncate align-bottom">
+ {download.url}
+ </span>
+ }
+ />
+ <TooltipContent>{download.url}</TooltipContent>
+ </Tooltip>
+ </div>
<button
type="button"
onClick={handleCopyUrl}