Skip to content

Commit

Permalink
fix styling quirks
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Jul 7, 2023
1 parent f645c39 commit 3ab4104
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/pages/DrawerViewPage/DrawerItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
@end="emits('dragEnd', clonedMatches)"
>
<template #item="{ element }">
<div class="item-container relative rounded flex items-start group">
<div
class="item-container relative rounded flex items-start group shadow-sm"
>
<div
v-if="isDraggable"
class="drag-handle cursor-move h-full py-1 rounded-l border border-l-0 group-hover:bg-blue-600 group-hover:border-blue-600 group-hover:text-blue-100 transition-colors"
class="drag-handle cursor-move h-full py-1 rounded-l border border-r-0 group-hover:bg-blue-600 group-hover:border-blue-600 group-hover:text-blue-100 transition-colors"
>
<DragIcon />
</div>
Expand All @@ -27,7 +29,7 @@
class="search-result-card h-full flex-1 !rounded-l-none"
:mediaCardClass="[
'group-hover:bg-blue-50 group-hover:border-blue-600 group-hover:!text-blue-600',
isDraggable ? 'rounded-l-none border-l-none' : '',
isDraggable ? 'rounded-l-none !border-l-0 shadow-none' : '',
]"
/>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/DrawerViewPage/DrawerItemsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
@end="emits('dragEnd', clonedMatches)"
>
<template #item="{ element }">
<div class="item-container relative rounded flex group">
<div class="item-container relative rounded flex group shadow-sm">
<div
v-if="isDraggable"
class="drag-handle cursor-move py-1 rounded-l border border-l-0 group-hover:bg-blue-600 group-hover:border-blue-600 group-hover:text-blue-100 transition-colors"
class="drag-handle cursor-move py-1 rounded-l group-hover:bg-blue-600 group-hover:border-blue-600 group-hover:text-blue-100 transition-colors bg-white"
>
<DragIcon />
</div>
Expand Down Expand Up @@ -90,12 +90,12 @@ const hasMoreResults = computed(() => {
});
</script>
<style scoped>
.drag-handle {
/* .drag-handle {
background: white;
border: var(--app-mediaCard-borderWidth) solid
var(--app-mediaCard-borderColor);
border-right: none;
}
} */
.draggable-ghost {
opacity: 0.5;
Expand Down

0 comments on commit 3ab4104

Please sign in to comment.