Commit 5d965336 authored by christianrhansen's avatar christianrhansen

preparing image cell for custom cell styling

parent ccf9c97d
Pipeline #59676 passed with stage
in 3 minutes and 33 seconds
......@@ -5,16 +5,14 @@
template(v-if="display")
conditional-link.fit.text-center.relative-position.linked(v-if="link", :url="link")
.fit(:style="cellBg", :class="cell.stylesheet.value")
.fit(:style="cellBg")
q-btn.absolute-center.bg-primary.text-white(round, flat, size="sm")
q-icon(v-if="link", name="link")
// img(:src="imgSrc")
// img(v-else, :src="imgSrc")
.fit(v-else, :style="cellBg", :class="cell.stylesheet.value")
.fit(v-else, :style="cellBg")
template(v-else)
div.q-pa-sm.cell-background(:style="cellBg", :class="cell.stylesheet.value")
div.q-pa-sm.cell-background(:style="cellBg")
.absolute-top-left.q-pa-sm
cell-info(:cell="cell", type="Image Cell")
......@@ -55,8 +53,7 @@
return this.cell.source._value.link
},
cellBg () {
// if (this.preview) return 'background-image: url(\'' + this.imgSrc + '\');'
return 'background-image: url(\'' + this.imgSrc + '\');'
return 'background-image: url(\'' + this.imgSrc + '\'); ' + this.cell.stylesheet.value
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment