mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Make dialogs look better on mobile (#908)
* Standardize mobile media query * Refactor & add mobile support to dialogs * back & close icons
This commit is contained in:
parent
c85315650f
commit
668f8ec4a6
15 changed files with 328 additions and 201 deletions
|
@ -4,13 +4,14 @@ import React from "react";
|
|||
|
||||
type IslandProps = { children: React.ReactNode; padding?: number };
|
||||
|
||||
export function Island({ children, padding }: IslandProps) {
|
||||
return (
|
||||
export const Island = React.forwardRef<HTMLDivElement, IslandProps>(
|
||||
({ children, padding }, ref) => (
|
||||
<div
|
||||
className="Island"
|
||||
style={{ "--padding": padding } as React.CSSProperties}
|
||||
ref={ref}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue