terrier-engine 4.0.12 → 4.0.13
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
|
@@ -141,16 +141,17 @@ class CardFragment<TT extends ThemeType> extends ContentFragment<TT> {
|
|
|
141
141
|
* @param parent
|
|
142
142
|
*/
|
|
143
143
|
render(parent: PartTag) {
|
|
144
|
+
const noTtPrefix = this.prefix.replace('tt-', '')
|
|
144
145
|
return parent.a({href: this._href}, this.prefix, panel => {
|
|
145
146
|
if (this._title?.length) {
|
|
146
|
-
panel.div(`.${
|
|
147
|
+
panel.div(`.${noTtPrefix}-header`, header => {
|
|
147
148
|
if (this._icon) {
|
|
148
149
|
this.theme.renderIcon(header, this._icon, 'link')
|
|
149
150
|
}
|
|
150
151
|
header.h3({text: this._title})
|
|
151
152
|
})
|
|
152
153
|
}
|
|
153
|
-
panel.div(`.${
|
|
154
|
+
panel.div(`.${noTtPrefix}-content`, content => {
|
|
154
155
|
if (this._content) {
|
|
155
156
|
this._content(content)
|
|
156
157
|
}
|