diff --git a/resources/assets/src/components/ClosetItem.vue b/resources/assets/src/components/ClosetItem.vue index 0d9bca32..c7d3b3e8 100644 --- a/resources/assets/src/components/ClosetItem.vue +++ b/resources/assets/src/components/ClosetItem.vue @@ -1,9 +1,10 @@ + + diff --git a/resources/assets/src/styles/common.styl b/resources/assets/src/styles/common.styl index 05847bd7..7b5683c0 100644 --- a/resources/assets/src/styles/common.styl +++ b/resources/assets/src/styles/common.styl @@ -21,75 +21,6 @@ body, h1, h2, h3, h4, h5, h6 .main-header .sidebar-toggle::before content '' -.item - display block - background #EFF1F0 - box-shadow 0 1px 1px rgba(0, 0, 0, 0.1) - border-radius 2px - float left - position relative - margin-right 20px - margin-bottom 20px - cursor pointer - width 210px - height 196px - transition box-shadow 0.1s ease-in-out 0s - -.item-body - height 166px - - img - max-width 100% - margin-left 30px - margin-top 16px - width 150px - -@media (max-width: 756px) - .item - width 45% - margin-right 5% - - .item-body > img - margin-left 25% - - .texture-name - width 65% - -@media (max-width: 520px) - .item - width 100% - - .item-body > img - margin-left 30% - - .texture-name - width 80% - -.item:hover - box-shadow 0 6px 12px rgba(0, 0, 0, 0.175) - -.item-selected - box-shadow 0 6px 12px rgba(0, 0, 0, 0.175) - -.item-footer - background #50b3ec - color #fff - font-size 16px - height 30px - padding 3px 8px - - .more - float right - margin-left 6px - margin-right 3px - color #fff - - .more:hover - color #dadada - - small - font-size 50% - .box-footer > p margin 6px 15px 5px 0 diff --git a/resources/assets/tests/components/ClosetItem.test.ts b/resources/assets/tests/components/ClosetItem.test.ts index a93ae179..dfa17424 100644 --- a/resources/assets/tests/components/ClosetItem.test.ts +++ b/resources/assets/tests/components/ClosetItem.test.ts @@ -30,7 +30,7 @@ test('click item body', () => { wrapper.find('.item').trigger('click') expect(wrapper.emitted().select).toBeUndefined() - wrapper.find('.item-body').trigger('click') + wrapper.find('.item-body > div').trigger('click') expect(wrapper.emitted().select).toBeTruthy() })