terrier-engine 4.0.6 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fragments.ts +3 -2
- package/package.json +1 -1
package/fragments.ts
CHANGED
|
@@ -74,9 +74,10 @@ export class PanelFragment<TT extends ThemeType> extends ContentFragment<TT> {
|
|
|
74
74
|
* @param parent
|
|
75
75
|
*/
|
|
76
76
|
render(parent: PartTag) {
|
|
77
|
+
const noTtPrefix = this.prefix.replace('tt-', '')
|
|
77
78
|
return parent.div(this.prefix, panel => {
|
|
78
79
|
if (this._title?.length) {
|
|
79
|
-
panel.div(`.${
|
|
80
|
+
panel.div(`.${noTtPrefix}-header`, header => {
|
|
80
81
|
header.h2(h2 => {
|
|
81
82
|
if (this._icon) {
|
|
82
83
|
this.theme.renderIcon(h2, this._icon, 'link')
|
|
@@ -86,7 +87,7 @@ export class PanelFragment<TT extends ThemeType> extends ContentFragment<TT> {
|
|
|
86
87
|
this.theme.renderActions(header, this.actions.tertiary)
|
|
87
88
|
})
|
|
88
89
|
}
|
|
89
|
-
panel.div(`.${
|
|
90
|
+
panel.div(`.${noTtPrefix}-content`, content => {
|
|
90
91
|
if (this._content) {
|
|
91
92
|
this._content(content)
|
|
92
93
|
}
|