Skip to content

Commit d9f4afe

Browse files
committed
pref: Optimize the button style for database connection information
1 parent 0542b39 commit d9f4afe

File tree

4 files changed

+37
-4
lines changed

4 files changed

+37
-4
lines changed

backend/init/lang/lang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func initLang() {
7474
downloadGeoFromRemote(fileOp, geoPath)
7575
return
7676
}
77-
std, err := cmd.Execf("cp %s %s", path.Join(tmpPath, "GeoIP.mmdb"), path.Dir(geoPath))
77+
std, err := cmd.Execf("cp %s %s/", path.Join(tmpPath, "GeoIP.mmdb"), path.Dir(geoPath))
7878
if err != nil {
7979
global.LOG.Errorf("load geo ip from package failed, std: %s, err: %v", std, err)
8080
return

frontend/src/views/database/mysql/conn/index.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
v-model="form.password"
8989
/>
9090
<el-button-group>
91-
<CopyButton :content="form.password" />
91+
<CopyButton class="copy_button" :content="form.password" />
9292
<el-button @click="random">
9393
{{ $t('commons.button.random') }}
9494
</el-button>
@@ -293,3 +293,14 @@ defineExpose({
293293
acceptParams,
294294
});
295295
</script>
296+
297+
<style lang="scss" scoped>
298+
.copy_button {
299+
border-radius: 0px;
300+
border-left-width: 0px;
301+
}
302+
:deep(.el-input__wrapper) {
303+
border-top-right-radius: 0px;
304+
border-bottom-right-radius: 0px;
305+
}
306+
</style>

frontend/src/views/database/postgresql/conn/index.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
v-model="form.password"
9090
/>
9191
<el-button-group>
92-
<CopyButton :content="form.password" />
92+
<CopyButton class="copy_button" :content="form.password" />
9393
<el-button @click="random">
9494
{{ $t('commons.button.random') }}
9595
</el-button>
@@ -262,3 +262,14 @@ defineExpose({
262262
acceptParams,
263263
});
264264
</script>
265+
266+
<style lang="scss" scoped>
267+
.copy_button {
268+
border-radius: 0px;
269+
border-left-width: 0px;
270+
}
271+
:deep(.el-input__wrapper) {
272+
border-top-right-radius: 0px;
273+
border-bottom-right-radius: 0px;
274+
}
275+
</style>

frontend/src/views/database/redis/conn/index.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
v-model="form.password"
7676
/>
7777
<el-button-group>
78-
<CopyButton :content="form.password" />
78+
<CopyButton class="copy_button" :content="form.password" />
7979
<el-button @click="random">
8080
{{ $t('commons.button.random') }}
8181
</el-button>
@@ -239,3 +239,14 @@ defineExpose({
239239
acceptParams,
240240
});
241241
</script>
242+
243+
<style lang="scss" scoped>
244+
.copy_button {
245+
border-radius: 0px;
246+
border-left-width: 0px;
247+
}
248+
:deep(.el-input__wrapper) {
249+
border-top-right-radius: 0px;
250+
border-bottom-right-radius: 0px;
251+
}
252+
</style>

0 commit comments

Comments
 (0)