Unify workspace dropdowns; Update layouts (#458)
Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
This commit is contained in:
committed by
GitHub
parent
ca585e09be
commit
4bc8448a1d
22
packages/ui/src/shadcn/aspect-ratio.tsx
Normal file
22
packages/ui/src/shadcn/aspect-ratio.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { cn } from '#lib/utils';
|
||||
|
||||
function AspectRatio({
|
||||
ratio,
|
||||
className,
|
||||
...props
|
||||
}: React.ComponentProps<'div'> & { ratio: number }) {
|
||||
return (
|
||||
<div
|
||||
data-slot="aspect-ratio"
|
||||
style={
|
||||
{
|
||||
'--ratio': ratio,
|
||||
} as React.CSSProperties
|
||||
}
|
||||
className={cn('relative aspect-(--ratio)', className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export { AspectRatio };
|
||||
Reference in New Issue
Block a user