Commit f70fed2e authored by jiangzijing's avatar jiangzijing

feat:查看日志细节调整

parent c09da352
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
overflow: hidden; overflow: hidden;
} }
.middleDynamic{ .middleDynamic {
display: flex; display: flex;
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -79,6 +79,10 @@ ...@@ -79,6 +79,10 @@
border-right: 1px solid #10141A; border-right: 1px solid #10141A;
} }
.logTitle:hover {
background-color: #23272E;
}
.logName { .logName {
max-width: 90px; max-width: 90px;
overflow: hidden; overflow: hidden;
...@@ -129,4 +133,12 @@ ...@@ -129,4 +133,12 @@
justify-content: end; justify-content: end;
height: 76px; height: 76px;
padding-right: 24px; padding-right: 24px;
}
.gradientBox {
position: absolute;
right: 49px;
width: 28px;
height: 32px;
background: linear-gradient(90deg, rgba(29, 33, 38, 0) 0%, #1D2126 100%);
} }
\ No newline at end of file
...@@ -70,7 +70,7 @@ const LogView = (props: LogViewProps) => { ...@@ -70,7 +70,7 @@ const LogView = (props: LogViewProps) => {
}, []) }, [])
useEffect(() => { useEffect(() => {
if (middleDynamicWidth < width - 97){ if (middleDynamicWidth < width - 97) {
setLeftButtonColor('#585D62') setLeftButtonColor('#585D62')
setRightButtonColor('#585D62') setRightButtonColor('#585D62')
} }
...@@ -79,9 +79,9 @@ const LogView = (props: LogViewProps) => { ...@@ -79,9 +79,9 @@ const LogView = (props: LogViewProps) => {
} else { } else {
setLeftButtonColor('#C0C5CD') setLeftButtonColor('#C0C5CD')
} }
if (middleDynamicWidth > width - 97 && displacement !== -middleDynamicWidth + width - 97){ if (middleDynamicWidth > width - 97 && displacement !== -middleDynamicWidth + width - 97) {
setRightButtonColor('#C0C5CD') setRightButtonColor('#C0C5CD')
}else{ } else {
setRightButtonColor('#585D62') setRightButtonColor('#585D62')
} }
}, [width, middleDynamicWidth, displacement]) }, [width, middleDynamicWidth, displacement])
...@@ -100,7 +100,7 @@ const LogView = (props: LogViewProps) => { ...@@ -100,7 +100,7 @@ const LogView = (props: LogViewProps) => {
if (middleDynamicWidth < width - 97) { if (middleDynamicWidth < width - 97) {
return return
} }
if (-displacement > middleDynamicWidth - width * 1.8) { if (-displacement > middleDynamicWidth - width * 1.8 + 97) {
setDisplacement(-middleDynamicWidth + width - 97) setDisplacement(-middleDynamicWidth + width - 97)
return return
} }
...@@ -131,7 +131,7 @@ const LogView = (props: LogViewProps) => { ...@@ -131,7 +131,7 @@ const LogView = (props: LogViewProps) => {
</div> </div>
<div className={style.middleFixed}> <div className={style.middleFixed}>
<div className={style.middleDynamic} id='middleDynamic' style={{ left: `${displacement}px` }}> <div className={style.middleDynamic} id='middleDynamic' style={{ left: `${displacement}px` }}>
{[...logs, ...logs, ...logs, ...logs, ...logs, ...logs, ...logs, ...logs, ...logs, ...logs, ...logs].map((item: any, index: number) => { {logs.map((item: any, index: number) => {
return <MyTooltip return <MyTooltip
title={item.logName} title={item.logName}
placement="bottom" placement="bottom"
...@@ -151,6 +151,7 @@ const LogView = (props: LogViewProps) => { ...@@ -151,6 +151,7 @@ const LogView = (props: LogViewProps) => {
})} })}
</div> </div>
</div> </div>
<div className={style.gradientBox}></div>
<div <div
className={style.rightButton} className={style.rightButton}
onClick={rightClick} onClick={rightClick}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment