fix(style): tooltip shown when no content

This commit is contained in:
jialin
2024-10-25 22:36:26 +08:00
parent a185bd9463
commit f730548c8f
6 changed files with 57 additions and 48 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import '@xterm/xterm/css/xterm.css';
import classNames from 'classnames';
import _ from 'lodash';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import CopyButton from '../copy-button';
import './index.less';
import useParseAnsi from './parse-ansi';
@@ -127,9 +126,9 @@ const LogsViewer: React.FC<LogsViewerProps> = (props) => {
return (
<div className="logs-viewer-wrap-w2">
<span className="copy">
{/* <span className="copy">
<CopyButton text={copyText} type="text" size="small"></CopyButton>
</span>
</span> */}
<div
className="wrap"
style={{ height: height }}