Skip to content

Commit

Permalink
fix the url displayed on the inspector page
Browse files Browse the repository at this point in the history
  • Loading branch information
Springrx committed Mar 18, 2024
1 parent ab8ea79 commit 21f9c9c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/views/inspector/FlowList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -340,16 +340,19 @@ export default {
initResizeObserver() {
const tableWrapper = this.$el.querySelector('.v-data-table__wrapper');
if (tableWrapper) {
const debouncedCalculateUrlMaxWidth = debounce((width) => {
this.calculateUrlMaxWidth(width);
}, 250);
this.resizeObserver = new ResizeObserver(entries => {
for (let entry of entries) {
this.calculateUrlMaxWidth(entry.contentRect.width);
debouncedCalculateUrlMaxWidth(entry.contentRect.width);
}
});
this.resizeObserver.observe(tableWrapper);
}
},
calculateUrlMaxWidth(tableWidth){
/*
/* widths of fixed columns
source: 105px
method: 60px
status: 50px
Expand Down

0 comments on commit 21f9c9c

Please sign in to comment.