Skip to content

Commit

Permalink
fix quick link null error
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecaret committed Aug 12, 2023
1 parent 6e492dd commit ee9ea2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/widgets/QuickLinksWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ const organizeLinks = () => {
if (['ch', 'ih'].includes(props.widget.layout)) {
availableSpace.value =
linkListEl.value.getBoundingClientRect().width - moreButtonEl.value.getBoundingClientRect().width
linkListEl.value.getBoundingClientRect().width - moreButtonEl.value?.getBoundingClientRect().width
} else if (['cv', 'iv'].includes(props.widget.layout)) {
availableSpace.value =
linkListEl.value.getBoundingClientRect().height - moreButtonEl.value.getBoundingClientRect().height
linkListEl.value.getBoundingClientRect().height - moreButtonEl.value?.getBoundingClientRect().height
}
if (containerSize.value > availableSpace.value) {
let size = 0
Expand Down

0 comments on commit ee9ea2b

Please sign in to comment.