move storage data directory to root

This commit is contained in:
Philipinho
2024-06-27 15:07:48 +01:00
parent aea37eecda
commit e73293856b
7 changed files with 20 additions and 7 deletions

View File

@ -5,7 +5,7 @@ import { getFileUrl } from "@/lib/config.ts";
export default function ImageView(props: NodeViewProps) {
const { node, selected } = props;
const { src, width, align } = node.attrs;
const { src, width, align, title } = node.attrs;
const flexJustifyContent = useMemo(() => {
if (align === "center") return "center";
@ -26,6 +26,7 @@ export default function ImageView(props: NodeViewProps) {
fit="contain"
w={width}
src={getFileUrl(src)}
alt={title}
className={selected ? "ProseMirror-selectednode" : ""}
/>
</NodeViewWrapper>

View File

@ -11,7 +11,7 @@ import { notifications } from "@mantine/notifications";
import useUserRole from "@/hooks/use-user-role.tsx";
const formSchema = z.object({
name: z.string().nonempty("Workspace name cannot be blank"),
name: z.string().min(4).nonempty("Workspace name cannot be blank"),
});
type FormValues = z.infer<typeof formSchema>;