Skip to content

Commit

Permalink
enhance(profile): 相互リンク機能の設定画面のデザイン修正 (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Aug 14, 2024
1 parent f415b2e commit 90be631
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2272,7 +2272,7 @@ _profile:
addMutualLinkSection: "Add section"
sectionName: "Section name"
sectionNameNoneDescription: "Do not display the section name"
sectionNameNone: "Hide section name"
sectionNameNone: "Section without name"
_exportOrImport:
allNotes: "All notes"
favoritedNotes: "Favorite notes"
Expand Down
2 changes: 1 addition & 1 deletion locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8859,7 +8859,7 @@ export interface Locale extends ILocale {
*/
"sectionNameNoneDescription": string;
/**
* セクション名を表示しない
* 名前が表示されないセクション
*/
"sectionNameNone": string;
};
Expand Down
2 changes: 1 addition & 1 deletion locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ _profile:
addMutualLinkSection: "セクションを追加"
sectionName: "セクション名"
sectionNameNoneDescription: "セクション名を表示しないようにする"
sectionNameNone: "セクション名を表示しない"
sectionNameNone: "名前が表示されないセクション"

_exportOrImport:
allNotes: "全てのノート"
Expand Down
2 changes: 1 addition & 1 deletion locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ _profile:
addMutualLinkSection: "섹션 추가"
sectionName: "섹션 이름"
sectionNameNoneDescription: "섹션 이름이 표시되지 않도록 합니다."
sectionNameNone: "섹션 이름을 숨기기"
sectionNameNone: "이름이 표시되지 않는 섹션"
_exportOrImport:
allNotes: "모든 노트"
favoritedNotes: "즐겨찾기한 노트"
Expand Down
9 changes: 5 additions & 4 deletions packages/frontend/src/pages/settings/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkFolder>
<template #label>{{ sectionElement.name || i18n.ts._profile.sectionNameNone }}</template>

<div :class="$style.metadataMargin">
<MkInput v-model="sectionElement.name" :disabled="sectionElement.none" :placeholder="i18n.ts._profile.sectionName" :max="32"></MkInput>
<MkSwitch v-model="sectionElement.none" @update:modelValue="()=>{sectionElement.name = null}">{{ i18n.ts._profile.sectionNameNoneDescription }}</MkSwitch>
<div class="_gaps_s" :class="$style.metadataMargin">
<MkInput v-if="sectionElement.name !== null" v-model="sectionElement.name" :placeholder="i18n.ts._profile.sectionName" :max="32"></MkInput>
<MkSwitch v-model="sectionElement.none" @update:modelValue="()=>{ sectionElement.none ? sectionElement.name = null : sectionElement.name = 'New Section' }">{{ i18n.ts._profile.sectionNameNoneDescription }}</MkSwitch>
<MkButton inline style="margin-right: 8px;" :disabled="sectionElement.mutualLinks.length >= $i.policies.mutualLinkLimit" @click="addMutualLinks(sectionIndex)"><i class="ti ti-plus"></i> {{ i18n.ts._profile.addMutualLink }}</MkButton>
</div>

<Sortable
v-model="sectionElement.mutualLinks"
class="_gaps_s"
Expand Down Expand Up @@ -248,7 +249,7 @@ function addMutualLinks(index:number) {
function addMutualLinkSections() {
mutualLinkSections.value.push({
name: null,
name: 'New Section',
mutualLinks: [],
});
}
Expand Down

0 comments on commit 90be631

Please sign in to comment.