mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 09:18:27 +00: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
1 changed files with 0 additions and 5 deletions
|
|
@ -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 a new issue