@jupyterlab/ui-components
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -103,5 +103,6 @@ // Copyright (c) Jupyter Development Team. | ||
// Move left to fit in the window. | ||
const right = rect.right; | ||
let right = rect.right; | ||
if (right > window.innerWidth) { | ||
left -= right - window.innerWidth; | ||
right = window.innerWidth; | ||
node.style.left = `${Math.ceil(left)}px`; | ||
@@ -108,0 +109,0 @@ } |
@@ -47,2 +47,7 @@ // Copyright (c) Jupyter Development Team. | ||
renderCloseIcon(data) { | ||
var _a; | ||
const trans = ((_a = TabBarSvg.translator) !== null && _a !== void 0 ? _a : nullTranslator).load('jupyterlab'); | ||
const title = data.title.label | ||
? trans.__('Close %1', data.title.label) | ||
: trans.__('Close tab'); | ||
const className = classes('jp-icon-hover lm-TabBar-tabCloseIcon', LabIconStyle.styleClass({ | ||
@@ -53,3 +58,3 @@ elementPosition: 'center', | ||
})); | ||
return hpass('div', { className }, closeIcon); | ||
return hpass('div', { className, title }, closeIcon); | ||
} | ||
@@ -56,0 +61,0 @@ } |
{ | ||
"name": "@jupyterlab/ui-components", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "JupyterLab - UI components written in React", | ||
@@ -44,6 +44,6 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/coreutils": "^6.0.5", | ||
"@jupyterlab/observables": "^5.0.5", | ||
"@jupyterlab/rendermime-interfaces": "^3.8.5", | ||
"@jupyterlab/translation": "^4.0.5", | ||
"@jupyterlab/coreutils": "^6.0.6", | ||
"@jupyterlab/observables": "^5.0.6", | ||
"@jupyterlab/rendermime-interfaces": "^3.8.6", | ||
"@jupyterlab/translation": "^4.0.6", | ||
"@lumino/algorithm": "^2.0.1", | ||
@@ -66,3 +66,3 @@ "@lumino/commands": "^2.1.3", | ||
"devDependencies": { | ||
"@jupyterlab/testing": "^4.0.5", | ||
"@jupyterlab/testing": "^4.0.6", | ||
"@types/jest": "^29.2.0", | ||
@@ -69,0 +69,0 @@ "@types/react": "^18.0.26", |
@@ -233,5 +233,6 @@ // Copyright (c) Jupyter Development Team. | ||
// Move left to fit in the window. | ||
const right = rect.right; | ||
let right = rect.right; | ||
if (right > window.innerWidth) { | ||
left -= right - window.innerWidth; | ||
right = window.innerWidth; | ||
node.style.left = `${Math.ceil(left)}px`; | ||
@@ -238,0 +239,0 @@ } |
@@ -49,2 +49,6 @@ // Copyright (c) Jupyter Development Team. | ||
renderCloseIcon(data: TabBar.IRenderData<any>): VirtualElement { | ||
const trans = (TabBarSvg.translator ?? nullTranslator).load('jupyterlab'); | ||
const title = data.title.label | ||
? trans.__('Close %1', data.title.label) | ||
: trans.__('Close tab'); | ||
const className = classes( | ||
@@ -61,3 +65,3 @@ 'jp-icon-hover lm-TabBar-tabCloseIcon', | ||
'div', | ||
{ className }, | ||
{ className, title }, | ||
closeIcon | ||
@@ -64,0 +68,0 @@ ) as unknown as VirtualElement; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
830347
17892