mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
disable pointer events on hidden menus in zen mode (#1511)
This commit is contained in:
parent
0c2aa951d6
commit
51f8146357
4 changed files with 28 additions and 8 deletions
|
@ -7,12 +7,19 @@ type StackProps = {
|
|||
gap?: number;
|
||||
align?: "start" | "center" | "end" | "baseline";
|
||||
justifyContent?: "center" | "space-around" | "space-between";
|
||||
className?: string | boolean;
|
||||
};
|
||||
|
||||
function RowStack({ children, gap, align, justifyContent }: StackProps) {
|
||||
function RowStack({
|
||||
children,
|
||||
gap,
|
||||
align,
|
||||
justifyContent,
|
||||
className,
|
||||
}: StackProps) {
|
||||
return (
|
||||
<div
|
||||
className="Stack Stack_horizontal"
|
||||
className={`Stack Stack_horizontal ${className || ""}`}
|
||||
style={
|
||||
{
|
||||
"--gap": gap,
|
||||
|
@ -26,10 +33,16 @@ function RowStack({ children, gap, align, justifyContent }: StackProps) {
|
|||
);
|
||||
}
|
||||
|
||||
function ColStack({ children, gap, align, justifyContent }: StackProps) {
|
||||
function ColStack({
|
||||
children,
|
||||
gap,
|
||||
align,
|
||||
justifyContent,
|
||||
className,
|
||||
}: StackProps) {
|
||||
return (
|
||||
<div
|
||||
className="Stack Stack_vertical"
|
||||
className={`Stack Stack_vertical ${className || ""}`}
|
||||
style={
|
||||
{
|
||||
"--gap": gap,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue