Skip to content

Commit

Permalink
fix: 优化一些文案 (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshangqi authored Oct 31, 2023
1 parent 18e0b4b commit da2276d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
11 changes: 8 additions & 3 deletions src/pages/inject/LevitateBall/app.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
.ballWrapper {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
user-select: none;
border: 1px solid @border-color;
Expand All @@ -24,7 +23,7 @@
background: @white;
opacity: 0.62;
cursor: pointer;
padding: 4px 12px 4px 4px;
padding: 6px 8px 6px 8px;
gap: 4px;
.logo {
font-size: 24px;
Expand Down Expand Up @@ -52,6 +51,7 @@
transition: all 0.3s ease-in-out;
cursor: pointer;
color: @text-color-secondary;
font-size: @font-size;
}
}
}
Expand Down Expand Up @@ -91,11 +91,12 @@
.radioGroup {
display: flex;
flex-direction: column;
gap: 10px;
}

.linkWrapper {
color: @text-color-secondary;
margin-top: 4px;
margin-top: 10px;

.link {
color: @link-color;
Expand Down Expand Up @@ -126,5 +127,9 @@
.anticon-exclamation-circle {
display: none;
}

.yuque-chrome-extension-confirm-paragraph {
row-gap: 10px;
}
}
}
5 changes: 3 additions & 2 deletions src/pages/inject/LevitateBall/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ function App() {
backgroundBridge.tab.create(LinkHelper.sidePanelSettingPage);
}}
>
{__i18n('设置页')}
{__i18n('设置')}
</div>
{__i18n('开启')}
</div>
</AntdLayout>
),
prefixCls: 'yuque-chrome-extension',
closable: true,
title: __i18n('关闭悬浮球'),
title: __i18n('关闭悬浮气泡'),
centered: true,
wrapClassName: styles.disableModal,
maskClosable: true,
Expand Down Expand Up @@ -225,6 +225,7 @@ function App() {
className={styles.dragBarMask}
onMouseLeave={() => {
setDragging(false);
entryStartActionRef.current = '';
}}
/>
)}
Expand Down
26 changes: 13 additions & 13 deletions src/pages/setting/wordMark/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ const mac = [
value: '',
label: '无',
},
{
value: 'Meta',
label: 'Command',
},
{
value: 'Alt',
label: 'Alt',
},
{
value: 'Shift',
label: 'Shift',
Expand All @@ -32,17 +24,21 @@ const mac = [
value: 'Control',
label: 'Ctrl',
},
{
value: 'Alt',
label: 'Alt',
},
{
value: 'Meta',
label: 'Command',
},
];

const windows = [
{
value: '',
label: '无',
},
{
value: 'Alt',
label: 'Alt',
},
{
value: 'Shift',
label: 'Shift',
Expand All @@ -51,6 +47,10 @@ const windows = [
value: 'Control',
label: 'Ctrl',
},
{
value: 'Alt',
label: 'Alt',
},
];

function WordMark() {
Expand Down Expand Up @@ -93,7 +93,7 @@ function WordMark() {
{!config.enable && (
<div className={styles.configItem}>
<div className={styles.desc}>
{__i18n('选中文本+按指定修饰键唤起')}
{__i18n('选中文本 + 按指定修饰键唤起')}
</div>
<Select
value={config[WordMarkConfigKey.evokeWordMarkShortKey]}
Expand Down

0 comments on commit da2276d

Please sign in to comment.