File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const InterceptOptionCard = styled(LittleCard)<{
111
111
}
112
112
113
113
> h1:not(:last-child) {
114
- margin-bottom: 10px;
114
+ margin-bottom: 10px; /* Override LittleCard default */
115
115
}
116
116
117
117
> p {
@@ -129,6 +129,15 @@ const InterceptOptionCard = styled(LittleCard)<{
129
129
align-items: flex-start;
130
130
` ;
131
131
132
+ const InterceptorTitle = styled . h1 < {
133
+ expanded : boolean
134
+ } > `
135
+ ${ p => p . expanded
136
+ ? 'margin-right: 20px;' // Avoid overlapping the close icon
137
+ : ''
138
+ }
139
+ ` ;
140
+
132
141
const LoadingOverlay = styled . div `
133
142
position: absolute;
134
143
top: 0;
@@ -233,7 +242,9 @@ export class InterceptOption extends React.Component<InterceptOptionProps> {
233
242
}
234
243
</ BackgroundIcons >
235
244
236
- < h1 > { interceptor . name } </ h1 >
245
+ < InterceptorTitle expanded = { expanded } >
246
+ { interceptor . name }
247
+ </ InterceptorTitle >
237
248
238
249
{ ConfigComponent && expanded
239
250
? < >
You can’t perform that action at this time.
0 commit comments