fix: target p instead of body for font-style italic in TextSettings
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 21s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-24 15:03:50 +01:00
parent 9f62d3ae5d
commit 5d43a772bc

View file

@ -468,7 +468,7 @@ watch(font, (val) => {
watch(italic, (val) => {
if (isUpdatingFromStore) return;
updateStyle('body', 'font-style', val ? 'italic' : 'normal');
updateStyle('p', 'font-style', val ? 'italic' : 'normal');
});
watch(alignment, (val) => {
@ -659,7 +659,7 @@ const syncFromStore = () => {
isUpdatingFromStore = true;
// Body styles
const fontStyle = extractValue('body', 'font-style');
const fontStyle = extractValue('p', 'font-style');
if (fontStyle) italic.value = fontStyle === 'italic';
const textAlign = extractValue('body', 'text-align');