Jiseoup/showmycodePublic
EN|KO
  • Code
  • Commits
  • Pull Requests
← Back to list
Merged

fix: correct background bleed in code viewer and alignment in branch selector

#11
JiseoupJiseoup · May 11, 2026fix/code-viewer-and-branch-selector → main
fix
OverviewCommitsFiles changed
Changed files

+2 -2 · 2

@@ -29,7 +29,7 @@ export function BranchSelector({ branches, current }: Props) {
return (
<Select value={current} onValueChange={handleChange}>
- <SelectTrigger className="h-7 w-full text-xs focus:ring-0 focus:ring-offset-0">
+ <SelectTrigger className="h-7 w-full text-xs focus:ring-0 focus:ring-offset-0 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -30,7 +30,7 @@ export async function CodeViewer({
return (
<div
- className="code-viewer overflow-auto text-sm [&>pre]:min-h-full [&>pre]:p-5"
+ className="code-viewer overflow-auto text-sm [&>pre]:min-h-full [&>pre]:min-w-max [&>pre]:p-5"
dangerouslySetInnerHTML={{ __html: html }}
/>
);