html size: remove span in widget labels
This commit is contained in:
parent
e2e2e6d549
commit
8d86981130
3 changed files with 4 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ module.exports.widgets = function(data, parentNode, parentWidget, tab) {
|
|||
// create container
|
||||
var widgetContainer = $(`
|
||||
<div class="widget ${props.type}-container">
|
||||
<div class="label"><span></span></div>
|
||||
<div class="label"></div>
|
||||
</div>
|
||||
`)
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ module.exports.widgets = function(data, parentNode, parentWidget, tab) {
|
|||
widgetInner.getProp('id'):
|
||||
iconify(widgetInner.getProp('label'))
|
||||
|
||||
widgetContainer.find('> .label span').html(label)
|
||||
widgetContainer.find('> .label').html(label)
|
||||
}
|
||||
|
||||
// parse scoped css
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ module.exports = class Modal extends Panel {
|
|||
this.value = v ? 1 : 0
|
||||
|
||||
if (!this.init && this.value) {
|
||||
var label = this.getProp('popupLabel') ? iconify(this.getProp('popupLabel')) : this.container.find('> .label span').html()
|
||||
var label = this.getProp('popupLabel') ? iconify(this.getProp('popupLabel')) : this.container.find('> .label').html()
|
||||
this.popup.find('.popup-title .popup-label').html(label)
|
||||
this.widget.detach().appendTo(this.popup.find('.popup-content'))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ module.exports = class Panel extends _widgets_base {
|
|||
for (let tab of tabs) {
|
||||
let style = tab.abstract.getProp('color') == 'auto' ? '' : `style="--color-custom:${tab.abstract.getProp('color')}"`
|
||||
this.tabs.push(tab.abstract)
|
||||
this.navigation.append(`<li class="tablink" data-widget="${tab.abstract.hash}" ${style}><a><span>${$(tab).find('> .label span').html()}</span></a></li>`)
|
||||
this.navigation.append(`<li class="tablink" data-widget="${tab.abstract.hash}" ${style}><a><span>${$(tab).find('> .label').html()}</span></a></li>`)
|
||||
}
|
||||
|
||||
this.setValue(this.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue