Avoid type select field to overlap closing icon

pull/7276/head
Henriette Dinger 6 years ago
parent 9a9920cd18
commit 8cbe2dd9dd
  1. 2
      frontend/src/app/components/wp-card-view/wp-card-view.component.html
  2. 8
      frontend/src/app/components/wp-card-view/wp-card-view.component.sass

@ -13,7 +13,7 @@
[attr.data-is-new]="wp.isNew || undefined" [attr.data-is-new]="wp.isNew || undefined"
[attr.data-work-package-id]="wp.id" [attr.data-work-package-id]="wp.id"
(doubleClickOrTap)="handleDblClick(wp)" (doubleClickOrTap)="handleDblClick(wp)"
[ngClass]="{'-draggable': dragAndDropEnabled }"> [ngClass]="{'-draggable': dragAndDropEnabled, '-new' : wp.isNew }">
<div class="wp-card--highlighting" <div class="wp-card--highlighting"
[ngClass]="cardHighlightingClass(wp)"> [ngClass]="cardHighlightingClass(wp)">

@ -19,7 +19,7 @@
width: 100% width: 100%
border: 1px solid var(--widget-box-block-border-color) border: 1px solid var(--widget-box-block-border-color)
border-radius: 2px border-radius: 2px
padding: 10px 12px 10px 10px padding: 10px
margin-top: 10px margin-top: 10px
position: relative position: relative
box-shadow: 1px 1px 3px 0px lightgrey box-shadow: 1px 1px 3px 0px lightgrey
@ -29,6 +29,8 @@
&:hover &:hover
box-shadow: 0px 0px 10px lightgrey box-shadow: 0px 0px 10px lightgrey
&.-new
padding-right: 25px
.wp-card--content:not(.-new) .wp-card--content:not(.-new)
display: grid display: grid
@ -52,8 +54,8 @@
grid-area: avatar grid-area: avatar
place-self: center left place-self: center left
.wp-card--id .wp-card--id
text-align: right
grid-area: idlink grid-area: idlink
place-self: center right
.wp-card--status .wp-card--status
grid-area: attributeTag grid-area: attributeTag
max-width: 120px max-width: 120px
@ -79,7 +81,7 @@ wp-edit-field
.wp-card--inline-cancel-button .wp-card--inline-cancel-button
position: absolute position: absolute
right: 0 right: 0
top: 4px top: 5px
opacity: 0 opacity: 0
&.-show, .wp-card:hover & &.-show, .wp-card:hover &

Loading…
Cancel
Save