π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π¨ Adds section-specific class names (#769)
Lissy934210c985b7ff
diff --git a/src/components/LinkItems/Collapsable.vue b/src/components/LinkItems/Collapsable.vueindex 75f4bc37..874a9345 100644--- a/src/components/LinkItems/Collapsable.vue+++ b/src/components/LinkItems/Collapsable.vue@@ -2,7 +2,7 @@<divv-bind:class="[{ 'is-open': isExpanded, 'full-height': cutToHeight },- `collapsable ${rowColSpanClass}`+ `collapsable ${rowColSpanClass}`, sectionClassName]":style="`${color ? 'background: '+color : ''}; ${sanitizeCustomStyles(customStyles)};`">@@ -74,6 +74,10 @@ export default {const { rows, cols, checkSpanNum } = this;return `${checkSpanNum(cols, 'col')} ${checkSpanNum(rows, 'row')}`;},+ sectionClassName() {+ if (!this.title) return 'unnamed-section';+ return `section_${this.title.replaceAll(' ', '-').toLowerCase()}`;+ },/* Used to fetch initial collapse state, and set new collapse state on change */isExpanded: {get() {