Skip to content

Commit

Permalink
fix: correct scroll behavior in DependencyLogsDialog component
Browse files Browse the repository at this point in the history
- Updated the scrollToBottom function to use scrollHeight instead of clientHeight, ensuring the logs view scrolls to the bottom correctly.

This change improves the user experience by providing accurate scrolling behavior in the logs dialog.
  • Loading branch information
tikazyq committed Dec 31, 2024
1 parent 76b87d4 commit d0b2e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/dependency/DependencyLogsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getActiveTargetLogs = async () => {
};
const scrollToBottom = () => {
logsViewRef.value?.scrollTo(0, logsViewRef.value?.clientHeight);
logsViewRef.value?.scrollTo(0, logsViewRef.value?.scrollHeight);
};
const onClose = () => {
Expand Down

0 comments on commit d0b2e9a

Please sign in to comment.