Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
f70fed2e
Commit
f70fed2e
authored
Sep 16, 2022
by
jiangzijing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:查看日志细节调整
parent
c09da352
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
index.module.css
src/views/Project/ProjectJobDetail/LogView/index.module.css
+14
-1
index.tsx
src/views/Project/ProjectJobDetail/LogView/index.tsx
+6
-5
No files found.
src/views/Project/ProjectJobDetail/LogView/index.module.css
View file @
f70fed2e
...
@@ -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
src/views/Project/ProjectJobDetail/LogView/index.tsx
View file @
f70fed2e
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment