pref: Optimize the button style for database connection information (#7342)

pull/7345/head
ssongliu 2024-12-12 11:53:48 +08:00 committed by GitHub
parent 0542b39373
commit c35f55f70c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 37 additions and 4 deletions

View File

@ -74,7 +74,7 @@ func initLang() {
downloadGeoFromRemote(fileOp, geoPath) downloadGeoFromRemote(fileOp, geoPath)
return 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 { if err != nil {
global.LOG.Errorf("load geo ip from package failed, std: %s, err: %v", std, err) global.LOG.Errorf("load geo ip from package failed, std: %s, err: %v", std, err)
return return

View File

@ -88,7 +88,7 @@
v-model="form.password" v-model="form.password"
/> />
<el-button-group> <el-button-group>
<CopyButton :content="form.password" /> <CopyButton class="copy_button" :content="form.password" />
<el-button @click="random"> <el-button @click="random">
{{ $t('commons.button.random') }} {{ $t('commons.button.random') }}
</el-button> </el-button>
@ -293,3 +293,14 @@ defineExpose({
acceptParams, acceptParams,
}); });
</script> </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>

View File

@ -89,7 +89,7 @@
v-model="form.password" v-model="form.password"
/> />
<el-button-group> <el-button-group>
<CopyButton :content="form.password" /> <CopyButton class="copy_button" :content="form.password" />
<el-button @click="random"> <el-button @click="random">
{{ $t('commons.button.random') }} {{ $t('commons.button.random') }}
</el-button> </el-button>
@ -262,3 +262,14 @@ defineExpose({
acceptParams, acceptParams,
}); });
</script> </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>

View File

@ -75,7 +75,7 @@
v-model="form.password" v-model="form.password"
/> />
<el-button-group> <el-button-group>
<CopyButton :content="form.password" /> <CopyButton class="copy_button" :content="form.password" />
<el-button @click="random"> <el-button @click="random">
{{ $t('commons.button.random') }} {{ $t('commons.button.random') }}
</el-button> </el-button>
@ -239,3 +239,14 @@ defineExpose({
acceptParams, acceptParams,
}); });
</script> </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>