mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Koenig - Wrap HR card in {{koenig-card}} component
refs https://github.com/TryGhost/Ghost/issues/9311 - makes the HR card behave like the other cards wrt hover and selection visibility
This commit is contained in:
parent
1a673cfe99
commit
355bf18c7c
@ -9,7 +9,6 @@ const TICK_HEIGHT = 8;
|
||||
export default Component.extend({
|
||||
layout,
|
||||
attributeBindings: ['style'],
|
||||
classNames: 'mih10', // TODO: move to kgStyle('container-card')?
|
||||
classNameBindings: ['isSelected:kg-card-selected'],
|
||||
|
||||
// attrs
|
||||
|
@ -266,7 +266,7 @@ export function kgStyle(params/*, hash*/) {
|
||||
// Container cards
|
||||
case 'container-card':
|
||||
case 'container-card-p':
|
||||
cssClass = cardBorderStyle + ' tmb--2-0x';
|
||||
cssClass = cardBorderStyle + ' tmb--2-0x mih10';
|
||||
break;
|
||||
|
||||
// Generic media card
|
||||
|
@ -1 +1,10 @@
|
||||
<hr>
|
||||
{{#koenig-card
|
||||
class="kg-card-hover"
|
||||
isSelected=isSelected
|
||||
isEditing=isEditing
|
||||
selectCard=(action selectCard)
|
||||
editCard=(action editCard)
|
||||
hasEditMode=false
|
||||
}}
|
||||
<hr>
|
||||
{{/koenig-card}}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{#koenig-card
|
||||
class=(concat (kg-style "media-card") " miw-100 tc")
|
||||
class=(concat (kg-style "media-card") " mih10 miw-100 tc")
|
||||
isSelected=isSelected
|
||||
isEditing=isEditing
|
||||
selectCard=(action selectCard)
|
||||
|
Loading…
Reference in New Issue
Block a user