Adjust positioning and set only core component as selected item by default
This commit is contained in:
@@ -296,7 +296,9 @@ body {
|
|||||||
color: var(--background-color);
|
color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.component-selection-table th:not(:first-child) {
|
.component-selection-table th:nth-child(3),
|
||||||
|
.component-selection-table th:nth-child(4),
|
||||||
|
.component-selection-table th:nth-child(5) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
@@ -305,7 +307,9 @@ body {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.component-selection-table td:not(:first-child) {
|
.component-selection-table td:nth-child(3),
|
||||||
|
.component-selection-table td:nth-child(4),
|
||||||
|
.component-selection-table td:nth-child(5) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,13 +64,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
setupActionHandlers();
|
setupActionHandlers();
|
||||||
setupColumnHeaderHandlers();
|
setupColumnHeaderHandlers();
|
||||||
|
|
||||||
// Initialize all components as selected with all context types
|
// Initialize only core component as selected with all context types
|
||||||
components.forEach(comp => {
|
state.selectedComponents.add('core');
|
||||||
if (!comp.special) {
|
state.selectedContextTypes.set('core', new Set(contextTypes));
|
||||||
state.selectedComponents.add(comp.id);
|
|
||||||
state.selectedContextTypes.set(comp.id, new Set(contextTypes));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
updateComponentUI();
|
updateComponentUI();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user