centered layout

This commit is contained in:
codetorso 2024-06-24 02:56:36 +05:30
parent 4b6a932b19
commit 4bdc819dc2
3 changed files with 6 additions and 10 deletions

View file

@ -1,3 +0,0 @@
.tlui-dialog__overlay {
position: fixed;
}

View file

@ -21,4 +21,8 @@
.tlui-minimap__canvas {
background: #1F2428 !important;
}
.tlui-dialog__overlay {
position: fixed;
}

View file

@ -1,8 +1,4 @@
import {
BaseBoxShapeUtil,
HTMLContainer,
TLBaseShape,
} from "tldraw";
import { BaseBoxShapeUtil, HTMLContainer, TLBaseShape } from "tldraw";
type ITextCardShape = TLBaseShape<
"Textcard",
@ -22,14 +18,13 @@ export class textCardUtil extends BaseBoxShapeUtil<ITextCardShape> {
}
component(s: ITextCardShape) {
return (
<HTMLContainer className="flex h-full w-full items-center justify-center">
<div
style={{
height: s.props.h,
width: s.props.w,
pointerEvents:"all",
pointerEvents: "all",
background: "#2C3439",
borderRadius: "16px",
padding: "8px 14px",