mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:59:39 +02:00
Try new layout and a bunch of editor fixes
This commit is contained in:
15
src-web/components/LayoutPane.tsx
Normal file
15
src-web/components/LayoutPane.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import classnames from 'classnames';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export interface LayoutPaneProps {
|
||||
children?: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function LayoutPane({ className, children }: LayoutPaneProps) {
|
||||
return (
|
||||
<div className={classnames(className, 'w-full h-full p-2')} data-tauri-drag-region>
|
||||
<div className={classnames('w-full h-full bg-gray-50/50 rounded-lg')}>{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user