Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
7064d2d4
Commit
7064d2d4
authored
2 years ago
by
Leon
Browse files
Options
Download
Email Patches
Plain Diff
move icon to right side
parent
5f73c2d5
ui/-replay-phase-2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx
+3
-2
...mponents/EntryDetailed/EntryViewer/AutoRepresentation.tsx
ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.module.sass
+5
-0
...ponents/EntryDetailed/EntryViewer/EntryViewer.module.sass
with
8 additions
and
2 deletions
+8
-2
ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx
+
3
-
2
View file @
7064d2d4
...
...
@@ -27,7 +27,7 @@ export const AutoRepresentation: React.FC<any> = ({ representation, color, opene
const
arr
=
[
{
tab
:
'
Request
'
,
badge
:
isReplayDisplayed
()
&&
<
span
title
=
"Replay Request"
><
ReplayIcon
fill
=
{
color
}
stroke
=
{
color
}
style
=
{
{
marginLeft
:
"
10px
"
,
cursor
:
"
pointer
"
,
height
:
"
22px
"
}
}
onClick
=
{
()
=>
setIsOpenRequestModal
(
true
)
}
/></
span
>
badge
:
null
}]
if
(
response
)
{
...
...
@@ -40,7 +40,7 @@ export const AutoRepresentation: React.FC<any> = ({ representation, color, opene
}
return
arr
},
[
color
,
isReplayDisplayed
,
response
,
setIsOpenRequestModal
]);
},
[
response
]);
const
[
currentTab
,
setCurrentTab
]
=
useState
(
TABS
[
0
].
tab
);
...
...
@@ -66,6 +66,7 @@ export const AutoRepresentation: React.FC<any> = ({ representation, color, opene
{
<
div
className
=
{
styles
.
body
}
>
<
div
className
=
{
styles
.
bodyHeader
}
>
<
Tabs
tabs
=
{
TABS
}
currentTab
=
{
currentTab
}
color
=
{
color
}
onChange
=
{
setCurrentTab
}
leftAligned
/>
{
isReplayDisplayed
()
&&
<
span
title
=
"Replay Request"
><
ReplayIcon
fill
=
{
color
}
stroke
=
{
color
}
style
=
{
{
marginLeft
:
"
10px
"
,
cursor
:
"
pointer
"
,
height
:
"
22px
"
}
}
onClick
=
{
()
=>
setIsOpenRequestModal
(
true
)
}
/></
span
>
}
</
div
>
{
getOpenedTabIndex
()
===
TabsEnum
.
Request
&&
<
React
.
Fragment
>
<
SectionsRepresentation
data
=
{
request
}
color
=
{
color
}
requestRepresentation
=
{
request
}
/>
...
...
This diff is collapsed.
Click to expand it.
ui-common/src/components/EntryDetailed/EntryViewer/EntryViewer.module.sass
+
5
-
0
View file @
7064d2d4
...
...
@@ -52,8 +52,13 @@
border-radius
:
4px
padding
:
10px
position
:
relative
.bodyHeader
padding
:
0
1rem
display
:
flex
align-items
:
center
justify-content
:
space-between
.endpointURL
font-size
:
.75rem
display
:
block
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help