Skip to content

Commit

Permalink
Fix graph layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 18, 2025
1 parent a7788b7 commit bd4c80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ i.v-icon.mdi-chevron-down {
.item.muuri-item-hidden {
z-index: 0;
}
/* Graph.vue 'width = width / 2.0 - 12' is based on the margin: 6px */
.item-content {
position: relative;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,10 @@ export default {
height = height / 2.0 + 10 // 5px padding top and bottom
}
}
let width = viewWidth - 68 // padding left and right
let width = viewWidth - 50 // padding left and right
if (!this.fullWidth) {
width = width / 2.0 - 10 // 5px padding left and right
// 6px padding left and right defined in TlmGrapher.vue .item-content
width = width / 2.0 - 12
}
return {
width: this.width || width,
Expand Down

0 comments on commit bd4c80c

Please sign in to comment.