Skip to content

Commit

Permalink
fix(Web-UI): Fixed the hover and click not working on TVshow links to…
Browse files Browse the repository at this point in the history
… display the details page
  • Loading branch information
JasonLandbridge committed May 14, 2023
1 parent 7f74ea4 commit 34eadc1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:columns="mediaTableColumns"
:row="row"
selectable
@action="onRowAction" />
:disable-hover-click="disableHoverClick" />
</q-intersection>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
</template>
<!-- Title -->
<template v-else-if="column['type'] === 'title'">
<q-col class="media-table-row--column media-table-row--title">
<span>{{ row[column.field] }} </span>
<q-col
:class="[
'media-table-row--column',
'media-table-row--title',
!disableHoverClick ? 'media-table-row--title--hover' : '',
]"
@click.stop="!disableHoverClick ? onRowAction({ command: 'open-details' }) : () => {}">
<span>
{{ row[column.field] }}
</span>
</q-col>
</template>
<!-- Duration format -->
Expand Down Expand Up @@ -73,6 +81,7 @@ defineProps<{
row: PlexMediaSlimDTO;
columns: QTreeViewTableHeader[];
index: number;
disableHoverClick?: boolean;
}>();
defineEmits<{
Expand Down Expand Up @@ -105,6 +114,14 @@ defineEmits<{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
&--hover {
cursor: pointer;
&:hover {
color: $primary;
}
}
}
}
Expand Down

0 comments on commit 34eadc1

Please sign in to comment.