mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
fix(editor): update className to prevent flex item shrinkage in footer and header components
This commit is contained in:
parent
e8778df846
commit
ee37b78c20
@ -39,7 +39,7 @@ export default function WorkspaceEditorFooter({
|
||||
return (
|
||||
<footer
|
||||
{...props}
|
||||
className={cn("h-9 flex items-center bg-muted px-3 py-2", className)}
|
||||
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
|
||||
|
@ -12,7 +12,7 @@ export default function WorkspaceEditorHeader({
|
||||
return (
|
||||
<header
|
||||
{...props}
|
||||
className={cn("h-8 flex items-center p-1 border-b", className)}
|
||||
className={cn("h-8 flex flex-none items-center px-2 border-b", className)}
|
||||
>
|
||||
<div className="w-full flex items-center">
|
||||
<div className="flex items-center gap-x-2">
|
||||
|
@ -25,7 +25,7 @@ export default function WorkspaceLayout({ editor }: WorkspaceLayoutProps) {
|
||||
</TabsList>
|
||||
<ScrollBar orientation="horizontal" />
|
||||
</ScrollArea>
|
||||
<TabsContent value="editor" className="grow mt-0">
|
||||
<TabsContent value="editor" className="flex-1 mt-0">
|
||||
{editor}
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
|
Loading…
Reference in New Issue
Block a user