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.
Files changed (2) hide show
  1. package/fragments.ts +3 -2
  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(`.${this.prefix}-header`, header => {
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(`.${this.prefix}-content`, content => {
154
+ panel.div(`.${noTtPrefix}-content`, content => {
154
155
  if (this._content) {
155
156
  this._content(content)
156
157
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "*"
6
6
  ],
7
- "version": "4.0.12",
7
+ "version": "4.0.13",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Terrier-Tech/terrier-engine"