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
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:
parent
9f62d3ae5d
commit
5d43a772bc
1 changed files with 2 additions and 2 deletions
|
|
@ -468,7 +468,7 @@ watch(font, (val) => {
|
||||||
|
|
||||||
watch(italic, (val) => {
|
watch(italic, (val) => {
|
||||||
if (isUpdatingFromStore) return;
|
if (isUpdatingFromStore) return;
|
||||||
updateStyle('body', 'font-style', val ? 'italic' : 'normal');
|
updateStyle('p', 'font-style', val ? 'italic' : 'normal');
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(alignment, (val) => {
|
watch(alignment, (val) => {
|
||||||
|
|
@ -659,7 +659,7 @@ const syncFromStore = () => {
|
||||||
isUpdatingFromStore = true;
|
isUpdatingFromStore = true;
|
||||||
|
|
||||||
// Body styles
|
// Body styles
|
||||||
const fontStyle = extractValue('body', 'font-style');
|
const fontStyle = extractValue('p', 'font-style');
|
||||||
if (fontStyle) italic.value = fontStyle === 'italic';
|
if (fontStyle) italic.value = fontStyle === 'italic';
|
||||||
|
|
||||||
const textAlign = extractValue('body', 'text-align');
|
const textAlign = extractValue('body', 'text-align');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue