Skip to content

Commit

Permalink
fix: add tooltip to display full text (e.g. method, class, thread) (#270
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yanglong1010 authored Mar 20, 2024
1 parent 005bb8b commit 34c6a08
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions frontend/src/components/jfr/Jfr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const filter = ref(null);
const toggleFilterValuesChecked = ref(true);
const flameGraphDataSource = ref(null);
const flameGraphEmptyData = ref({ format: 'line', data: [] });
const taskName = ref(null);
const taskName = ref('');
const flameGraphModalVisible = ref(false);
const hasData = ref(false);
Expand Down Expand Up @@ -202,6 +202,8 @@ async function queryFlameGraph(include: boolean, taskSet: any) {
function onDimensionIndexChange() {
toggleFilterValuesChecked.value = true;
selectedFilterIndex.value = 0;
taskName.value = '';
queryGraph();
}
Expand All @@ -211,6 +213,7 @@ async function onSelectedFilterIndexChange() {
let filterName =
perfDimensions.value[selectedDimensionIndex.value].filters[selectedFilterIndex.value].key;
await queryFlameGraph(false, []);
taskName.value = '';
if (filterName === 'Thread') {
buildFilterValueByThreads();
} else if (filterName === 'Class') {
Expand Down Expand Up @@ -598,9 +601,16 @@ onUnmounted(() => {});
"
>
<div>
<el-text truncated>
{{ data.key }}
</el-text>
<el-tooltip
class="box-item"
effect="dark"
:content="data.key"
placement="bottom"
>
<el-text truncated>
{{ data.key }}
</el-text>
</el-tooltip>
</div>
<div>
<el-text tag="b" size="small" truncated>
Expand Down

0 comments on commit 34c6a08

Please sign in to comment.