From 90230e9d6ac8e05365a1d01be33519c9285ad7b7 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 12 Dec 2020 10:19:15 -0500 Subject: set minimum width to render title for documentdecorations --- src/client/views/DocumentDecorations.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index f256aff40..9e81e108e 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -633,12 +633,13 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b top: bounds.y - this._resizeBorderWidth / 2 - this._titleHeight, }}> {closeIcon} - {titleArea} + {bounds.r - bounds.x < 100 ? null : titleArea} {SelectionManager.SelectedDocuments().length !== 1 || seldoc.Document.type === DocumentType.INK ? (null) : {`${seldoc.finalLayoutKey.includes("icon") ? "De" : ""}Iconify Document`}} placement="top">
-
} + + } {openIcon}
e.preventDefault()} />
e.preventDefault()} /> -- cgit v1.2.3-70-g09d2