Skip to content

Commit

Permalink
pref: Optimize the button style for database connection information (1…
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu authored Dec 12, 2024
1 parent 0542b39 commit c35f55f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/init/lang/lang.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func initLang() {
downloadGeoFromRemote(fileOp, geoPath)
return
}
std, err := cmd.Execf("cp %s %s", path.Join(tmpPath, "GeoIP.mmdb"), path.Dir(geoPath))
std, err := cmd.Execf("cp %s %s/", path.Join(tmpPath, "GeoIP.mmdb"), path.Dir(geoPath))
if err != nil {
global.LOG.Errorf("load geo ip from package failed, std: %s, err: %v", std, err)
return
Expand Down
13 changes: 12 additions & 1 deletion frontend/src/views/database/mysql/conn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
v-model="form.password"
/>
<el-button-group>
<CopyButton :content="form.password" />
<CopyButton class="copy_button" :content="form.password" />
<el-button @click="random">
{{ $t('commons.button.random') }}
</el-button>
Expand Down Expand Up @@ -293,3 +293,14 @@ defineExpose({
acceptParams,
});
</script>

<style lang="scss" scoped>
.copy_button {
border-radius: 0px;
border-left-width: 0px;
}
:deep(.el-input__wrapper) {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
</style>
13 changes: 12 additions & 1 deletion frontend/src/views/database/postgresql/conn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
v-model="form.password"
/>
<el-button-group>
<CopyButton :content="form.password" />
<CopyButton class="copy_button" :content="form.password" />
<el-button @click="random">
{{ $t('commons.button.random') }}
</el-button>
Expand Down Expand Up @@ -262,3 +262,14 @@ defineExpose({
acceptParams,
});
</script>

<style lang="scss" scoped>
.copy_button {
border-radius: 0px;
border-left-width: 0px;
}
:deep(.el-input__wrapper) {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
</style>
13 changes: 12 additions & 1 deletion frontend/src/views/database/redis/conn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
v-model="form.password"
/>
<el-button-group>
<CopyButton :content="form.password" />
<CopyButton class="copy_button" :content="form.password" />
<el-button @click="random">
{{ $t('commons.button.random') }}
</el-button>
Expand Down Expand Up @@ -239,3 +239,14 @@ defineExpose({
acceptParams,
});
</script>

<style lang="scss" scoped>
.copy_button {
border-radius: 0px;
border-left-width: 0px;
}
:deep(.el-input__wrapper) {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
</style>

0 comments on commit c35f55f

Please sign in to comment.