delete defaults values textSettings for inline elements
This commit is contained in:
parent
efa1004380
commit
8a896277bf
2 changed files with 5 additions and 3 deletions
|
|
@ -285,11 +285,15 @@ export function useElementSettings({ margin, padding, basePopup }) {
|
||||||
skip: () => !settingEnabled.border || borderWidth.value === 0 },
|
skip: () => !settingEnabled.border || borderWidth.value === 0 },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const isInlineElement = computed(() => !!INLINE_DEFAULTS[currentTag.value]);
|
||||||
|
|
||||||
const displayedCss = computed(() => {
|
const displayedCss = computed(() => {
|
||||||
if (!selector.value) return '';
|
if (!selector.value) return '';
|
||||||
const lines = [];
|
const lines = [];
|
||||||
for (const entry of displayedCssOrder) {
|
for (const entry of displayedCssOrder) {
|
||||||
if (entry.skip && entry.skip()) continue;
|
if (entry.skip && entry.skip()) continue;
|
||||||
|
// For inline elements, skip special groups (TextSettings defaults) when toggle is OFF
|
||||||
|
if (entry.special && isInlineElement.value && !settingEnabled[entry.group]) continue;
|
||||||
const val = entry.getValue();
|
const val = entry.getValue();
|
||||||
if (val === null || val === undefined) continue;
|
if (val === null || val === undefined) continue;
|
||||||
const comment = (entry.special && !settingEnabled[entry.group]) ? ' /* valeur par défaut */' : '';
|
const comment = (entry.special && !settingEnabled[entry.group]) ? ' /* valeur par défaut */' : '';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Default values for the application.
|
* Static launch values.
|
||||||
* Single source of truth — imported by components, composables, and stores.
|
|
||||||
* These are static launch values, NOT user-configured defaults.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const PAGE_DEFAULTS = Object.freeze({
|
export const PAGE_DEFAULTS = Object.freeze({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue