Skip to content

Commit

Permalink
fix(frontend): fixing select spans visual bug (#2698)
Browse files Browse the repository at this point in the history
fix(frontend): fixing select spans visual bue
  • Loading branch information
xoscar authored and mathnogueira committed Jun 13, 2023
1 parent 8d7c043 commit ccb3d2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import styled from 'styled-components';

export const Container = styled.div`
position: absolute;
left: 20%;
display: flex;
justify-content: center;
margin-top: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const CurrentSpanSelector = ({spanId}: IProps) => {

const handleOnClick = useCallback(() => {
const selector = SpanService.getSelectorInformation(span!);

if (isTestSpecFormOpen)
open({
isEditing: false,
Expand All @@ -42,8 +41,8 @@ const CurrentSpanSelector = ({spanId}: IProps) => {
}, [isTestSpecFormOpen, onOpen, open, span]);

return (
<S.Container className="matched">
<S.FloatingText onClick={() => !isTriggerSelectorLoading && handleOnClick()}>
<S.Container className="matched" onClick={() => !isTriggerSelectorLoading && handleOnClick()}>
<S.FloatingText>
{isTriggerSelectorLoading ? (
<>
Updating selected span <LoadingOutlined />
Expand Down

0 comments on commit ccb3d2b

Please sign in to comment.