Skip to content

Commit 4637c81

Browse files
perf: Style optimization
1 parent 0721109 commit 4637c81

3 files changed

Lines changed: 101 additions & 81 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { h } from 'vue'
2+
export default {
3+
'app-tool-store': {
4+
iconReader: () => {
5+
return h('i', [
6+
h(
7+
'svg',
8+
{
9+
viewBox: '0 0 1024 1024',
10+
version: '1.1',
11+
xmlns: 'http://www.w3.org/2000/svg',
12+
},
13+
[
14+
h('path', {
15+
d: 'M836.992 85.333333l6.485333 0.512a42.666667 42.666667 0 0 1 33.28 26.794667l64.042667 165.76c26.965333 69.845333 5.034667 142.634667-44.117333 188.074667 0.085333 0.938667 0.170667 1.877333 0.170666 2.858666v426.666667a42.666667 42.666667 0 0 1-42.666666 42.666667h-682.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V469.333333c0-0.938667 0.042667-1.877333 0.128-2.773333C79.786667 421.12 57.856 348.330667 84.821333 278.528L148.906667 112.64l2.773333-5.888A42.666667 42.666667 0 0 1 188.672 85.333333h648.32z m-185.301333 368.725334A170.24 170.24 0 0 1 523.648 512h-21.76a170.24 170.24 0 0 1-128.085333-57.941333 170.922667 170.922667 0 0 1-159.616 55.04V853.333333h597.333333v-344.192a171.050667 171.050667 0 0 1-159.829333-55.082666z',
16+
fill: 'currentColor',
17+
}),
18+
],
19+
),
20+
])
21+
},
22+
},
23+
}

ui/src/views/application-overview/xpack-component/XPackLimitDrawer.vue

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,33 @@
4949
</p>
5050
</el-radio>
5151
<el-form-item class="ml-24" v-if="form.authentication_value.type === 'password'">
52-
<el-input
53-
class="authentication-append-input"
54-
v-model="form.authentication_value.password_value"
55-
readonly
56-
style="width: 268px"
57-
>
58-
<template #append>
52+
<div class="complex-search flex align-center">
53+
<el-input
54+
class="authentication-append-input"
55+
v-model="form.authentication_value.password_value"
56+
readonly
57+
style="width: 268px"
58+
>
59+
</el-input>
60+
<div>
5961
<el-tooltip :content="$t('common.copy')" placement="top">
60-
<el-button
61-
type="primary"
62-
text
63-
@click="copyClick(form.authentication_value.password_value)"
64-
style="margin: 0 0 0 4px !important"
65-
>
66-
<AppIcon iconName="app-copy"></AppIcon>
62+
<el-button text @click="copyClick(form.authentication_value.password_value)">
63+
<AppIcon iconName="app-copy" class="color-secondary"></AppIcon>
6764
</el-button>
6865
</el-tooltip>
6966
<el-tooltip :content="$t('common.refresh')" placement="top">
7067
<el-button
7168
@click="refreshAuthentication"
72-
type="primary"
7369
text
7470
style="margin: 0 4px 0 0 !important"
7571
>
76-
<el-icon>
72+
<el-icon class="color-secondary">
7773
<RefreshRight />
7874
</el-icon>
7975
</el-button>
8076
</el-tooltip>
81-
</template>
82-
</el-input>
77+
</div>
78+
</div>
8379
</el-form-item>
8480
</el-card>
8581
<el-card
@@ -98,7 +94,12 @@
9894
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
9995
</el-tooltip>
10096

101-
<el-button v-if="form.authentication_value.type === 'login'" type="primary" link @click="router.push({ name: 'applicationChatUser' })">
97+
<el-button
98+
v-if="form.authentication_value.type === 'login'"
99+
type="primary"
100+
link
101+
@click="router.push({ name: 'applicationChatUser' })"
102+
>
102103
{{ $t('views.applicationOverview.appInfo.LimitDialog.toSettingChatUser') }}
103104
</el-button>
104105
</p>
@@ -309,8 +310,5 @@ defineExpose({ open })
309310
</script>
310311
<style lang="scss" scoped>
311312
.authentication-append-input {
312-
:deep(.el-input-group__append) {
313-
padding: 0 !important;
314-
}
315313
}
316314
</style>

0 commit comments

Comments
 (0)