@@ -9,6 +9,7 @@ import { isUndefined } from "utils/index";
99import { DisputeDetailsFragment , useCasesQuery } from "queries/useCasesQuery" ;
1010
1111import { responsiveSize } from "styles/responsiveSize" ;
12+ import { hoverShortTransitionTiming } from "styles/commonStyles" ;
1213
1314import DisputeView from "components/DisputeView" ;
1415import { SkeletonDisputeCard } from "components/StyledSkeleton" ;
@@ -18,7 +19,7 @@ const Container = styled.div`
1819` ;
1920
2021const Title = styled . h1 `
21- margin-bottom: 4px ;
22+ margin: 0 ;
2223 font-size: ${ responsiveSize ( 20 , 24 ) } ;
2324` ;
2425
@@ -30,11 +31,20 @@ const DisputeContainer = styled.div`
3031 gap: var(--gap);
3132` ;
3233
34+ const TitleAndClearLabel = styled . div `
35+ display: flex;
36+ flex-direction: row;
37+ gap: 12px;
38+ align-items: center;
39+ margin-bottom: ${ responsiveSize ( 12 , 24 ) } ;
40+ ` ;
41+
3342const StyledLabel = styled . label `
34- display: block;
43+ ${ hoverShortTransitionTiming }
3544 color: ${ ( { theme } ) => theme . primaryBlue } ;
3645 cursor: pointer;
37- margin-bottom: ${ responsiveSize ( 12 , 16 ) } ;
46+ margin-top: 6px;
47+
3848 :hover {
3949 color: ${ ( { theme } ) => theme . secondaryBlue } ;
4050 }
@@ -61,8 +71,10 @@ const FavoriteCases: React.FC = () => {
6171
6272 return starredCaseIds . length > 0 && ( isUndefined ( disputes ) || disputes . length > 0 ) ? (
6373 < Container >
64- < Title > Favorite Cases</ Title >
65- < StyledLabel onClick = { clearAll } > Clear all</ StyledLabel >
74+ < TitleAndClearLabel >
75+ < Title > Favorite Cases</ Title >
76+ < StyledLabel onClick = { clearAll } > Clear all</ StyledLabel >
77+ </ TitleAndClearLabel >
6678 < DisputeContainer >
6779 { isUndefined ( disputes )
6880 ? Array . from ( { length : 3 } ) . map ( ( _ , index ) => < SkeletonDisputeCard key = { index } /> )
0 commit comments