diff --git a/static/boot.js b/static/boot.js index e967f292..af545ef1 100644 --- a/static/boot.js +++ b/static/boot.js @@ -201,11 +201,8 @@ function syncWorkspacePanelUI(){ const clearBtn=$('btnClearPreview'); if(clearBtn){ clearBtn.disabled=!isOpen; - _setButtonTooltip(clearBtn, hasPreview?'Close preview':'Hide workspace panel'); - // On desktop, only show the X button when a file preview is open. - // In browse mode the chevron (btnCollapseWorkspacePanel) already serves - // as the close control, so showing both produces a duplicate X. - if(!isCompact) clearBtn.style.display=hasPreview?'':'none'; + _setButtonTooltip(clearBtn, hasPreview?'Close preview':'Close'); + if(!isCompact) clearBtn.style.display=''; } } diff --git a/static/index.html b/static/index.html index c32974ce..592e6243 100644 --- a/static/index.html +++ b/static/index.html @@ -1181,17 +1181,15 @@