@lethevimlet/sshift 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/webapp/css/style.css +2 -2
- package/src/webapp/js/app.js +3 -6
package/package.json
CHANGED
package/src/webapp/css/style.css
CHANGED
|
@@ -3939,7 +3939,7 @@ body.dragging-tabs .tabs-container {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
|
|
3941
3941
|
.header.hidden {
|
|
3942
|
-
transform:
|
|
3942
|
+
transform: none !important;
|
|
3943
3943
|
}
|
|
3944
3944
|
|
|
3945
3945
|
.tabs-container {
|
|
@@ -3952,7 +3952,7 @@ body.dragging-tabs .tabs-container {
|
|
|
3952
3952
|
}
|
|
3953
3953
|
|
|
3954
3954
|
.tabs-container.hidden {
|
|
3955
|
-
transform:
|
|
3955
|
+
transform: none !important;
|
|
3956
3956
|
}
|
|
3957
3957
|
|
|
3958
3958
|
/* Add padding to main-content to account for fixed header and tabs */
|
package/src/webapp/js/app.js
CHANGED
|
@@ -2690,14 +2690,10 @@ const wheelHandler = (e) => {
|
|
|
2690
2690
|
// - Scrolling DOWN (towards bottom) decreases ydisp
|
|
2691
2691
|
// So: scrollDiff > 0 means scrolling UP into history, scrollDiff < 0 means scrolling DOWN
|
|
2692
2692
|
|
|
2693
|
-
//
|
|
2694
|
-
//
|
|
2695
|
-
// When scrolling DOWN (towards bottom, scrollDiff < 0), hide header/tabs to maximize terminal space
|
|
2696
|
-
// But never hide when keyboard is open - they must stay fixed at top
|
|
2693
|
+
// On mobile, header and tabs should always remain visible
|
|
2694
|
+
// Only show (never hide) in case they were hidden by some other mechanism
|
|
2697
2695
|
if (scrollDiff > 2) {
|
|
2698
2696
|
this.showHeaderAndTabs();
|
|
2699
|
-
} else if (scrollDiff < -2 && this.currentKeyboardHeight <= 50) {
|
|
2700
|
-
this.hideHeaderAndTabs();
|
|
2701
2697
|
}
|
|
2702
2698
|
|
|
2703
2699
|
// Update last scroll position
|
|
@@ -2705,6 +2701,7 @@ const wheelHandler = (e) => {
|
|
|
2705
2701
|
}
|
|
2706
2702
|
|
|
2707
2703
|
hideHeaderAndTabs() {
|
|
2704
|
+
if (this.isMobile) return;
|
|
2708
2705
|
if (this.headerHidden) return;
|
|
2709
2706
|
|
|
2710
2707
|
console.log('[SSHIFT] Hiding header and tabs');
|