feat(footer): wrap footer text in a span for improved truncation handling
This commit is contained in:
parent
89ea5b4684
commit
9184dc6eb2
@ -14,7 +14,9 @@ export default function ProblemDescriptionFooter({
|
||||
className={cn("h-9 flex flex-none items-center bg-muted", className)}
|
||||
>
|
||||
<div className="w-full flex items-center justify-center">
|
||||
Description of Two Sum
|
||||
<span className="truncate">
|
||||
Description of Two Sum
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
@ -14,7 +14,9 @@ export default function ProblemSolutionFooter({
|
||||
className={cn("h-9 flex flex-none items-center bg-muted", className)}
|
||||
>
|
||||
<div className="w-full flex items-center justify-center">
|
||||
Solution of Two Sum
|
||||
<span className="truncate">
|
||||
Solution of Two Sum
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
@ -42,9 +42,11 @@ export default function WorkspaceEditorFooter({
|
||||
className={cn("h-9 flex flex-none items-center bg-muted px-3 py-2", className)}
|
||||
>
|
||||
<div className="w-full flex items-center justify-end">
|
||||
{position
|
||||
? `Row ${position.lineNumber}, Column ${position.column}`
|
||||
: "Row -, Column -"}
|
||||
<span className="truncate">
|
||||
{position
|
||||
? `Row ${position.lineNumber}, Column ${position.column}`
|
||||
: "Row -, Column -"}
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user