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);
|
||||
}
|
||||
|
||||
.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;
|
||||
width: 120px;
|
||||
}
|
||||
@@ -305,7 +307,9 @@ body {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -64,13 +64,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
setupActionHandlers();
|
||||
setupColumnHeaderHandlers();
|
||||
|
||||
// Initialize all components as selected with all context types
|
||||
components.forEach(comp => {
|
||||
if (!comp.special) {
|
||||
state.selectedComponents.add(comp.id);
|
||||
state.selectedContextTypes.set(comp.id, new Set(contextTypes));
|
||||
}
|
||||
});
|
||||
// Initialize only core component as selected with all context types
|
||||
state.selectedComponents.add('core');
|
||||
state.selectedContextTypes.set('core', new Set(contextTypes));
|
||||
updateComponentUI();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user