@lethevimlet/sshift 1.1.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lethevimlet/sshift",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Web-based SSH + SFTP terminal client with tabs and bookmarks",
5
5
  "main": "src/server/index.js",
6
6
  "bin": {
@@ -3939,7 +3939,7 @@ body.dragging-tabs .tabs-container {
3939
3939
  }
3940
3940
 
3941
3941
  .header.hidden {
3942
- transform: translateY(-100%);
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: translateY(-100%);
3955
+ transform: none !important;
3956
3956
  }
3957
3957
 
3958
3958
  /* Add padding to main-content to account for fixed header and tabs */
@@ -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
- // Hide/show header and tabs based on scroll direction
2694
- // When scrolling UP (into scrollback, scrollDiff > 0), show header/tabs for navigation
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');