Maxime Quandalle 9 anni fa
parent
commit
b96a60c9bb

+ 1 - 0
CHANGELOG.md

@@ -18,6 +18,7 @@ and fixes the following bugs:
 * Fix the generation and alignment of the initials avatars;
 * Fix the generation and alignment of the initials avatars;
 * Only display the buttons in the board header, if the data is avialable
 * Only display the buttons in the board header, if the data is avialable
   and the user is able to use it;
   and the user is able to use it;
+* Fix the scaling of cover images;
 
 
 Thanks to GitHub users alayek, AlexanderS, choclin, floatinghotpot, ForNeVeR,
 Thanks to GitHub users alayek, AlexanderS, choclin, floatinghotpot, ForNeVeR,
 seschwar, and TheElf for their contributions.
 seschwar, and TheElf for their contributions.

+ 2 - 1
client/components/cards/attachments.jade

@@ -49,4 +49,5 @@ template(name="attachmentsGalery")
                 | {{_ 'delete'}}
                 | {{_ 'delete'}}
 
 
     if currentUser.isBoardMember
     if currentUser.isBoardMember
-      a.attachment-item.add-attachment.js-add-attachment {{_ 'add-attachment' }}
+      li.attachment-item.add-attachment
+        a.js-add-attachment {{_ 'add-attachment' }}

+ 7 - 3
client/components/cards/attachments.styl

@@ -20,6 +20,10 @@
       display: flex
       display: flex
       align-items: center
       align-items: center
 
 
+      a
+        display: block
+        margin: auto
+
     .attachment-thumbnail
     .attachment-thumbnail
       height: 80px
       height: 80px
       display: flex
       display: flex
@@ -28,8 +32,8 @@
       position: relative
       position: relative
 
 
       .attachment-thumbnail-img
       .attachment-thumbnail-img
-        height: 100%
-        width: 100%
+        max-height: 100%
+        max-width: 100%
 
 
       .attachment-thumbnail-ext
       .attachment-thumbnail-ext
         text-transform: uppercase
         text-transform: uppercase
@@ -39,7 +43,7 @@
       font-size: 0.75em
       font-size: 0.75em
       margin: 3px
       margin: 3px
 
 
-      .attachment-details-actions
+      .attachment-details-actions a
         display: block
         display: block
 
 
 .attachment-image-preview
 .attachment-image-preview

+ 1 - 2
client/components/cards/minicard.jade

@@ -1,8 +1,7 @@
 template(name="minicard")
 template(name="minicard")
   .minicard
   .minicard
     if cover
     if cover
-      .minicard-cover
-        img(src="{{pathFor cover.url}}")
+      .minicard-cover(style="background-image: url('{{pathFor cover.url}}');")
     if labels
     if labels
       .minicard-labels
       .minicard-labels
         each labels
         each labels

+ 1 - 6
client/components/cards/minicard.styl

@@ -62,16 +62,11 @@
   .minicard-cover
   .minicard-cover
     background-position: center
     background-position: center
     background-repeat: no-repeat
     background-repeat: no-repeat
-    background-size: cover
+    background-size: contain
     height: 145px
     height: 145px
     user-select: none
     user-select: none
     margin: -6px -8px 6px -8px
     margin: -6px -8px 6px -8px
     border-radius: top 2px
     border-radius: top 2px
-    position: relative
-
-    img
-      height: 100%
-      width: 100%
 
 
   .minicard-labels
   .minicard-labels
     float: right
     float: right