We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c385d27 commit c88b058Copy full SHA for c88b058
1 file changed
docs/.vuepress/components/Chat.vue
@@ -124,13 +124,17 @@ export default {
124
this.handleScroll(); // Recalculate position on resize
125
},
126
handleScroll() {
127
+ // Only apply scroll positioning on desktop
128
+ if (this.isMobile) {
129
+ this.dynamicBottom = 15;
130
+ return;
131
+ }
132
const distanceToPageBottom =
133
document.documentElement.scrollHeight -
134
window.scrollY -
135
window.innerHeight;
- const defaultBottom = this.isMobile ? 15 : 20;
136
// Keep element at least stopFromBottom pixels from the page bottom
- this.dynamicBottom = Math.max(defaultBottom, this.stopFromBottom - distanceToPageBottom);
137
+ this.dynamicBottom = Math.max(20, this.stopFromBottom - distanceToPageBottom);
138
139
onIframeLoad() {
140
this.isLoading = false;
0 commit comments