diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-16 23:32:47 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-16 23:32:47 +0200 |
commit | f039923ac134e4a3cc70a1a7d47c21460676b1c0 (patch) | |
tree | 5b73cfb78eddd605b4a27c7e76335d4a3f477a81 /client/components/cards | |
parent | 80a4bdd417f6d11b828ca9a2f09c0d87ae7efe48 (diff) | |
download | wekan-f039923ac134e4a3cc70a1a7d47c21460676b1c0.tar.gz wekan-f039923ac134e4a3cc70a1a7d47c21460676b1c0.tar.bz2 wekan-f039923ac134e4a3cc70a1a7d47c21460676b1c0.zip |
Fix #196
Diffstat (limited to 'client/components/cards')
-rw-r--r-- | client/components/cards/minicard.jade | 3 | ||||
-rw-r--r-- | client/components/cards/minicard.styl | 13 |
2 files changed, 6 insertions, 10 deletions
diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade index 2eee3164..660b0fa5 100644 --- a/client/components/cards/minicard.jade +++ b/client/components/cards/minicard.jade @@ -1,7 +1,8 @@ template(name="minicard") .minicard if cover - .minicard-cover(style="background-image: url({{cover.url}});") + .minicard-cover + img(src=cover.url) if labels .minicard-labels each labels diff --git a/client/components/cards/minicard.styl b/client/components/cards/minicard.styl index c854b1f5..4864a1bb 100644 --- a/client/components/cards/minicard.styl +++ b/client/components/cards/minicard.styl @@ -60,16 +60,11 @@ user-select: none margin: -6px -8px 6px -8px border-radius: top 2px + position: relative - &.no-preview-size - background-size: auto - background-position: center - - .minicard-dropzone - display: none - - .minicard.drophover .minicard-dropzone - background: rgba(255, 255, 255, .8) + img + height: 100% + width: 100% .minicard-title display: block |