Skip to content

Commit

Permalink
file name tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Jul 18, 2024
1 parent 70df263 commit 8004b86
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion report-viewer/src/components/fileDisplaying/CodePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@
<template>
<Interactable class="mx-2 !shadow print:!mx-0 print:!border-0 print:!p-0">
<div @click="collapsed = !collapsed" class="flex px-2 font-bold print:whitespace-pre-wrap">
<span class="flex-1">{{ getFileDisplayName(file) }}</span>
<ToolTipComponent direction="right" v-if="getFileDisplayName(file) != file.fileName">
<template #default
><span>{{ getFileDisplayName(file) }}</span></template
>
<template #tooltip
><p class="whitespace max-w-[22rem] text-sm font-normal">
{{ file.fileName }}
</p></template
>
</ToolTipComponent>
<span v-else>{{ file.fileName }}</span>

<span class="flex-1"></span>

<ToolTipComponent direction="left" class="font-normal">
<template #default
><span class="text-gray-600 dark:text-gray-300"
Expand Down

0 comments on commit 8004b86

Please sign in to comment.