Skip to content

Commit 9e08366

Browse files
authored
chore: change search by url search box (#553)
* chore: change search by url search box Signed-off-by: zhaoxinxin <1186037180@qq.com> * chore: change search by url search box Signed-off-by: zhaoxinxin <1186037180@qq.com> --------- Signed-off-by: zhaoxinxin <1186037180@qq.com>
1 parent 36678fb commit 9e08366

File tree

6 files changed

+64
-54
lines changed

6 files changed

+64
-54
lines changed

src/assets/images/gc/dialog-ttl.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/gc/audit/index.module.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,31 @@
171171
margin-right: 0.4rem;
172172
}
173173

174-
.TTLICon {
174+
.ttlContainer {
175+
display: flex;
176+
align-items: center;
177+
justify-content: center;
178+
flex-direction: column;
179+
}
180+
181+
.ttlWrapper {
182+
display: flex;
183+
align-items: center;
184+
justify-content: center;
185+
border: 1px solid #d3d3d3;
186+
width: 2.8rem;
187+
height: 2.8rem;
188+
border-radius: 0.3rem;
189+
margin-bottom: 0.8rem;
190+
}
191+
192+
.ttlICon {
175193
width: 1.4rem;
176194
height: 1.4rem;
177195
}
196+
197+
.ttlInputWrapper {
198+
display: flex;
199+
align-items: center;
200+
padding-top: 1rem;
201+
}

src/components/gc/audit/index.tsx

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -314,36 +314,17 @@ export default function AuditGC() {
314314
<Divider />
315315
<DialogContent>
316316
<Box>
317-
<Box
318-
sx={{
319-
display: 'flex',
320-
justifyContent: 'center',
321-
alignItems: 'center',
322-
flexDirection: 'column',
323-
}}
324-
>
325-
<Box
326-
sx={{
327-
display: 'flex',
328-
justifyContent: 'center',
329-
alignItems: 'center',
330-
borderColor: '#D3D3D3',
331-
border: '0.1rem solid #D3D3D3',
332-
width: '2.8rem',
333-
height: '2.8rem',
334-
borderRadius: '0.3rem',
335-
mb: '.8rem',
336-
}}
337-
>
338-
<DialogTTL className={styles.TTLICon} />
317+
<Box className={styles.ttlContainer}>
318+
<Box className={styles.ttlWrapper}>
319+
<DialogTTL className={styles.ttlICon} />
339320
</Box>
340-
<Box sx={{ display: 'flex', alignItems: 'center', mb: '1rem', justifyContent: 'center' }}>
321+
<Box textAlign="center" mb="1rem">
341322
<Typography variant="subtitle1" fontFamily="mabry-bold" component="div" pr="0.3rem" pt="0.1rem">
342-
Keep the records in this interval
323+
Keep records in
343324
</Typography>
344325
</Box>
345326
</Box>
346-
<Box sx={{ display: 'flex', pt: '1rem', position: 'relative' }}>
327+
<Box className={styles.ttlInputWrapper}>
347328
<TextField
348329
id="audit-ttl-input"
349330
name="audit"

src/components/gc/job/index.module.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,31 @@
168168
margin-right: 0.4rem;
169169
}
170170

171-
.TTLICon {
171+
.ttlContainer {
172+
display: flex;
173+
align-items: center;
174+
justify-content: center;
175+
flex-direction: column;
176+
}
177+
178+
.ttlWrapper {
179+
display: flex;
180+
align-items: center;
181+
justify-content: center;
182+
border: 1px solid #d3d3d3;
183+
width: 2.8rem;
184+
height: 2.8rem;
185+
border-radius: 0.3rem;
186+
margin-bottom: 0.8rem;
187+
}
188+
189+
.ttlICon {
172190
width: 1.4rem;
173191
height: 1.4rem;
174192
}
193+
194+
.ttlInputWrapper {
195+
display: flex;
196+
align-items: center;
197+
padding-top: 1rem;
198+
}

src/components/gc/job/index.tsx

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -320,36 +320,17 @@ export default function JobGC() {
320320
<Divider />
321321
<DialogContent>
322322
<Box>
323-
<Box
324-
sx={{
325-
display: 'flex',
326-
justifyContent: 'center',
327-
alignItems: 'center',
328-
flexDirection: 'column',
329-
}}
330-
>
331-
<Box
332-
sx={{
333-
display: 'flex',
334-
justifyContent: 'center',
335-
alignItems: 'center',
336-
borderColor: '#D3D3D3',
337-
border: '0.1rem solid #D3D3D3',
338-
width: '2.8rem',
339-
height: '2.8rem',
340-
borderRadius: '0.3rem',
341-
mb: '.8rem',
342-
}}
343-
>
344-
<DialogTTL className={styles.TTLICon} />
323+
<Box className={styles.ttlContainer}>
324+
<Box className={styles.ttlWrapper}>
325+
<DialogTTL className={styles.ttlICon} />
345326
</Box>
346-
<Box sx={{ display: 'flex', alignItems: 'center', mb: '1rem', justifyContent: 'center' }}>
327+
<Box textAlign="center" mb="1rem">
347328
<Typography variant="subtitle1" fontFamily="mabry-bold" component="div" pr="0.3rem">
348-
Keep the records in this interval
329+
Keep records in
349330
</Typography>
350331
</Box>
351332
</Box>
352-
<Box sx={{ display: 'flex', alignItems: 'center', pt: '1rem' }}>
333+
<Box className={styles.ttlInputWrapper}>
353334
<TextField
354335
id="job-ttl-input"
355336
name="job"

src/components/resource/task/clear/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ export default function Clear() {
870870

871871
const handleSearchByImageManifestURL = async (event: any) => {
872872
setIsLoading(true);
873+
setTask({});
873874
setSearchImageManifestISLodaing(true);
874875

875876
try {
@@ -1103,7 +1104,6 @@ export default function Clear() {
11031104
width: optional ? '45rem' : '36rem',
11041105
position: 'absolute',
11051106
backgroundColor: 'var(--palette-background-menu-paper)',
1106-
zIndex: '100001',
11071107
}}
11081108
>
11091109
<TextField

0 commit comments

Comments
 (0)