border + height section

This commit is contained in:
hamid zarghami
2025-08-06 08:49:11 +03:30
parent dcd5ab07e0
commit a47e10402c
6 changed files with 291 additions and 22 deletions
@@ -273,6 +273,36 @@ export const usePersonalityStore = create<PersonalityStore>((set, get) => ({
};
}),
setSectionHeight: (sectionKey: string, height: string) =>
set((state) => ({
data: {
...state.data,
[sectionKey]: {
...state.data[sectionKey],
height,
},
},
})),
setSectionBorder: (
sectionKey: string,
border: {
width?: string;
color?: string;
style?: "solid" | "dashed" | "dotted" | "none";
sides?: ("top" | "bottom" | "left" | "right")[];
}
) =>
set((state) => ({
data: {
...state.data,
[sectionKey]: {
...state.data[sectionKey],
border,
},
},
})),
setItems: (sectionKey: string, items: SectionItemType[]) =>
set((state) => ({
data: {