File tree Expand file tree Collapse file tree 1 file changed +12
-21
lines changed
web/src/pages/Cases/CaseDetails/Voting/VotesDetails Expand file tree Collapse file tree 1 file changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -75,21 +75,20 @@ const AccordionContentContainer = styled.div`
75
75
gap: 12px;
76
76
` ;
77
77
78
- const LabelWrapper = styled . div `
79
- display: flex;
80
- gap: 4px;
81
- ` ;
82
-
83
- const JustificationText = styled . label `
78
+ const VotedText = styled . label `
84
79
color: ${ ( { theme } ) => theme . secondaryText } ;
85
80
font-size: 16px;
86
- line-height: 1.25;
87
- flex: 1;
81
+ ::before {
82
+ content: "Voted: ";
83
+ color: ${ ( { theme } ) => theme . primaryText } ;
84
+ }
88
85
` ;
89
86
90
- const StyledLabel = styled . label `
91
- color: ${ ( { theme } ) => theme . primaryText } ;
92
- font-size: 16px;
87
+ const JustificationText = styled ( VotedText ) `
88
+ line-height: 1.25;
89
+ ::before {
90
+ content: "Justification: ";
91
+ }
93
92
` ;
94
93
95
94
const SecondaryTextLabel = styled . label `
@@ -115,18 +114,10 @@ const AccordionContent: React.FC<{
115
114
116
115
return (
117
116
< AccordionContentContainer >
118
- { ! isUndefined ( choice ) && (
119
- < LabelWrapper >
120
- < StyledLabel > Voted: </ StyledLabel >
121
- < SecondaryTextLabel dir = "auto" > { getVoteChoice ( parseInt ( choice ) , answers ) } </ SecondaryTextLabel >
122
- </ LabelWrapper >
123
- ) }
117
+ { ! isUndefined ( choice ) && < VotedText dir = "auto" > { getVoteChoice ( parseInt ( choice ) , answers ) } </ VotedText > }
124
118
125
119
{ justification ? (
126
- < LabelWrapper >
127
- < StyledLabel > Justification: </ StyledLabel >
128
- < JustificationText dir = "auto" > { justification } </ JustificationText >
129
- </ LabelWrapper >
120
+ < JustificationText dir = "auto" > { justification } </ JustificationText >
130
121
) : (
131
122
< SecondaryTextLabel > No justification provided</ SecondaryTextLabel >
132
123
) }
You can’t perform that action at this time.
0 commit comments