fix font size atom

This commit is contained in:
Ryan Di 2025-03-24 21:52:00 +11:00
parent 8af03454cb
commit db250eb974

View file

@ -4161,6 +4161,7 @@ class App extends React.Component<AppProps, AppState> {
);
if (boundText && genericSwitchable && firstElement) {
editorJotaiStore.set(shapeSwitchFontSizeAtom, {
...editorJotaiStore.get(shapeSwitchFontSizeAtom),
[element.id]: {
fontSize: boundText.fontSize,
elementType: element.type as GenericSwitchableToolType,