Skip to content

armgit / plexo

Public Imported from GitHub
0

Speed up downloads by combining multiple network connections in parallel

fix: prevent truncated text descender clipping

Anmol Kapil6be78d5e3189
diff --git a/src/renderer/src/components/TruncatedText.tsx b/src/renderer/src/components/TruncatedText.tsx
index cb0e995..73d8fc9 100644
--- a/src/renderer/src/components/TruncatedText.tsx
+++ b/src/renderer/src/components/TruncatedText.tsx
@@ -36,7 +36,9 @@ export function TruncatedText({
// reveal, and a keyboard user needs some way to reach the tooltip a mouse user gets
// via hover.
tabIndex={isTruncated ? 0 : undefined}
- className={`inline-block max-w-full truncate align-bottom outline-none focus-visible:rounded-sm focus-visible:ring-2 focus-visible:ring-ring/50 ${className}`}
+ // `truncate` applies overflow:hidden. Keep a full line box here instead of inheriting
+ // `leading-none`, which clips descenders such as g, j, p, q, and y at the bottom.
+ className={`inline-block max-w-full truncate align-bottom leading-normal outline-none focus-visible:rounded-sm focus-visible:ring-2 focus-visible:ring-ring/50 ${className}`}
>
{text}
</span>
diff --git a/src/renderer/src/screens/IdleScreen.tsx b/src/renderer/src/screens/IdleScreen.tsx
index 766419e..6a52835 100644
--- a/src/renderer/src/screens/IdleScreen.tsx
+++ b/src/renderer/src/screens/IdleScreen.tsx
@@ -301,7 +301,7 @@ export function IdleScreen(): React.JSX.Element {
<div className="flex h-9 items-center gap-[9px] rounded-[9px] border border-border px-3">
<div className={fieldLabelClass}>TO</div>
- <div className="min-w-0 flex-1 truncate font-mono text-[12.5px] text-[var(--text-secondary)]">
+ <div className="min-w-0 flex-1 truncate font-mono text-[12.5px] leading-normal text-[var(--text-secondary)]">
{toDisplayPath(destinationDir, homeDir)}
</div>
<Button