Skip to content

Commit

Permalink
optimize title display
Browse files Browse the repository at this point in the history
  • Loading branch information
whalechoi committed Sep 29, 2024
1 parent 481f507 commit faea35e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 9 additions & 5 deletions src/Manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
<span class="custom-title">{{ item.host }}:{{ item.port }}</span>
</template>
<template #value>
<van-space wrap>
<van-button plain hairline type="default" size="small"
:loading="item.speedtestLoading" @click="clickSpeedtest(item)">{{ i18n.global.t('manage.speedtest') }}</van-button>
<van-button plain hairline type="default" size="small" :loading="item.switchLoading"
@click="switchChecked(item)">{{ item.selected? '\u0008\u0008✔\u0008\u0008':i18n.global.t('manage.switch') }}</van-button>
<van-space>
<van-button plain hairline type="default" size="small" icon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMxOTg5ZmEiIGQ9Ik0xMSA5LjQ3VjExaDMuNzZMMTMgMTQuNTNWMTNIOS4yNHpNMTMgMUw2IDE1aDV2OGw3LTE0aC01eiIvPjwvc3ZnPg=="
:loading="item.speedtestLoading" @click="clickSpeedtest(item)"/>
<van-button plain hairline type="default" size="small" :icon="item.selected?'data:image/svg+xml;base64,PHN2ZyB0PSIxNzI3NjI2OTM1ODI3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2NzIyIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgyOS40MTg2NjcgMjUzLjQxODY2N2E2NCA2NCAwIDAgMSA5My4zNzYgODcuNDI0bC0yLjg4IDMuMDcyLTQ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MTc3OTQiPjwvcGF0aD48L3N2Zz4='"
:loading="item.switchLoading" @click="switchChecked(item)"/>
</van-space>
</template>
</van-cell>
Expand Down Expand Up @@ -393,9 +393,13 @@ initStatus()

<style>
.custom-title {
display: inline-block;
margin-right: 4px;
vertical-align: middle;
white-space: nowrap;
max-width: 70vw;
text-overflow: ellipsis;
overflow: hidden;
}

.search-icon {
Expand Down
2 changes: 0 additions & 2 deletions src/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ export const manage = {
'more-setting': 'Settings',
'load-balancing': 'Balancer',
'load-switch-data-failed': 'Load switch data failed, an exception occurred.',
'speedtest': 'Test',
'switch': 'Switch',
'remarks': 'Remarks',
'search': 'Querying',
'placeholder-text': 'Please enter an Remarks.',
Expand Down
2 changes: 0 additions & 2 deletions src/locales/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ export const manage = {
'more-setting': '更多设置',
'load-balancing': '负载均衡',
'load-switch-data-failed': '加载节点信息失败,发生异常。',
'speedtest': '测试',
'switch': '切换',
'remarks': '别名',
'search': '查询中',
'placeholder-text': '请输入别名',
Expand Down

0 comments on commit faea35e

Please sign in to comment.