Skip to content

Commit 21ec3a1

Browse files
committed
Add class to section, set image prop to false
1 parent edcb6ab commit 21ec3a1

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

index.css

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
section.k-section-name-modules .k-list-item-image {
2-
display: none;
3-
}
4-
5-
section.k-section-name-modules .k-list-item:not(.k-draggable-item) {
1+
section.k-modules-section .k-list-item:not(.k-draggable-item) {
62
background-color: rgba(255, 255, 255, 0.5);
73
}
84

9-
section.k-section-name-modules .k-list-item:not(.k-draggable-item) .k-list-item-text em {
5+
section.k-modules-section .k-list-item:not(.k-draggable-item) .k-list-item-text em {
106
color: rgba(0, 0, 0, 0.7);
117
}
128

13-
section.k-section-name-modules .k-headline {
14-
cursor: auto;
15-
}
16-
17-
section.k-section-name-modules .k-headline a {
9+
section.k-modules-section .k-headline a {
1810
pointer-events: none;
1911
}
12+
section.k-modules-section .k-headline {
13+
cursor: text;
14+
}
2015

2116
.k-topbar-crumbs a[href$="+modules"] {
2217
display: none;

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function url($options = null): string {
4545
'info' => function(string $info = '{{ page.moduleName }}') {
4646
return $info;
4747
},
48+
'image' => false,
4849
'parent' => function($parent = null) {
4950
if($parent != null) {
5051
return $parent;

src/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
panel.plugin('medienbaecker/modules', {
22
components: {
33
'k-modules-section': {
4-
extends: 'k-pages-section'
5-
}
4+
extends: 'k-pages-section',
5+
updated: function () {
6+
this.$nextTick(function () {
7+
this.$el.classList.add('k-modules-section');
8+
})
9+
}
10+
},
611
},
712
fields: {
813
modules_redirect: {

0 commit comments

Comments
 (0)