mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-13 13:39:48 +01:00
Remove double-click on block header to magnify (#233)
Now that we have the magnify button on the block, we don't need the double-click to magnify.
This commit is contained in:
parent
42cc9f5d18
commit
65e8d4e3fd
@ -122,10 +122,6 @@ const BlockFrame_Header = ({ blockId, layoutModel, viewModel }: BlockFrameProps)
|
|||||||
preIconButtonElem = <IconButton decl={preIconButton} className="block-frame-preicon-button" />;
|
preIconButtonElem = <IconButton decl={preIconButton} className="block-frame-preicon-button" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDoubleClick() {
|
|
||||||
layoutModel?.onMagnifyToggle();
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerTextElems: JSX.Element[] = [];
|
const headerTextElems: JSX.Element[] = [];
|
||||||
if (typeof headerTextUnion === "string") {
|
if (typeof headerTextUnion === "string") {
|
||||||
if (!util.isBlank(headerTextUnion)) {
|
if (!util.isBlank(headerTextUnion)) {
|
||||||
@ -143,7 +139,6 @@ const BlockFrame_Header = ({ blockId, layoutModel, viewModel }: BlockFrameProps)
|
|||||||
<div
|
<div
|
||||||
className="block-frame-default-header"
|
className="block-frame-default-header"
|
||||||
ref={layoutModel?.dragHandleRef}
|
ref={layoutModel?.dragHandleRef}
|
||||||
onDoubleClick={handleDoubleClick}
|
|
||||||
onContextMenu={(e) =>
|
onContextMenu={(e) =>
|
||||||
handleHeaderContextMenu(e, blockData, viewModel, layoutModel?.onMagnifyToggle, layoutModel?.onClose)
|
handleHeaderContextMenu(e, blockData, viewModel, layoutModel?.onMagnifyToggle, layoutModel?.onClose)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user