From 20d7ff47137671007d0a4a9a09fa0f67b13742d9 Mon Sep 17 00:00:00 2001 From: Giuliano Mele Date: Mon, 11 Jan 2021 23:04:17 +0100 Subject: [PATCH] fix(files): wrap tooltips of long file names (#1709) - Set break-word property to tooltip. - Changed overflow of rows to visible. - Set tooltip width to not exceed the menus width. Closes #1464 --- src/components/tooltip/Tooltip.js | 6 ++++-- src/files/file/File.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/tooltip/Tooltip.js b/src/components/tooltip/Tooltip.js index 16fd0a921..f77577751 100644 --- a/src/components/tooltip/Tooltip.js +++ b/src/components/tooltip/Tooltip.js @@ -48,8 +48,10 @@ export default class Tool extends React.Component {
+ transform: 'translate(-50%, 100%)', + wordWrap: 'break-word', + width: '100%' + }} className={`white z-max bg-navy-muted br2 pa1 f6 absolute ${(show && overflow) ? 'db' : 'dn'}`}>