refactor
This commit is contained in:
parent
fb05e86db7
commit
2d4d3417a2
1 changed files with 20 additions and 20 deletions
|
@ -1,42 +1,42 @@
|
||||||
<template>
|
<template>
|
||||||
<MkModal ref="modal" :z-priority="'high'" :src="src" @click="modal.close()" @closed="emit('closed')">
|
<MkModal ref="modal" :z-priority="'high'" :src="src" @click="modal.close()" @closed="emit('closed')">
|
||||||
<div class="gqyayizv _popup">
|
<div class="gqyayizv _popup">
|
||||||
<button key="public" class="_button" :class="{ active: v === 'public' }" data-index="1" @click="choose('public')">
|
<button key="public" class="_button item" :class="{ active: v === 'public' }" data-index="1" @click="choose('public')">
|
||||||
<div><i class="ti ti-world"></i></div>
|
<div class="icon"><i class="ti ti-world"></i></div>
|
||||||
<div>
|
<div class="body">
|
||||||
<span>{{ i18n.ts._visibility.public }}</span>
|
<span>{{ i18n.ts._visibility.public }}</span>
|
||||||
<span>{{ i18n.ts._visibility.publicDescription }}</span>
|
<span>{{ i18n.ts._visibility.publicDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="home" class="_button" :class="{ active: v === 'home' }" data-index="2" @click="choose('home')">
|
<button key="home" class="_button item" :class="{ active: v === 'home' }" data-index="2" @click="choose('home')">
|
||||||
<div><i class="ti ti-home"></i></div>
|
<div class="icon"><i class="ti ti-home"></i></div>
|
||||||
<div>
|
<div class="body">
|
||||||
<span>{{ i18n.ts._visibility.home }}</span>
|
<span>{{ i18n.ts._visibility.home }}</span>
|
||||||
<span>{{ i18n.ts._visibility.homeDescription }}</span>
|
<span>{{ i18n.ts._visibility.homeDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="followers" class="_button" :class="{ active: v === 'followers' }" data-index="3" @click="choose('followers')">
|
<button key="followers" class="_button item" :class="{ active: v === 'followers' }" data-index="3" @click="choose('followers')">
|
||||||
<div><i class="ti ti-lock-open"></i></div>
|
<div class="icon"><i class="ti ti-lock-open"></i></div>
|
||||||
<div>
|
<div class="body">
|
||||||
<span>{{ i18n.ts._visibility.followers }}</span>
|
<span>{{ i18n.ts._visibility.followers }}</span>
|
||||||
<span>{{ i18n.ts._visibility.followersDescription }}</span>
|
<span>{{ i18n.ts._visibility.followersDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button key="specified" :disabled="localOnly" class="_button" :class="{ active: v === 'specified' }" data-index="4" @click="choose('specified')">
|
<button key="specified" :disabled="localOnly" class="_button item" :class="{ active: v === 'specified' }" data-index="4" @click="choose('specified')">
|
||||||
<div><i class="ti ti-mail"></i></div>
|
<div class="icon"><i class="ti ti-mail"></i></div>
|
||||||
<div>
|
<div class="body">
|
||||||
<span>{{ i18n.ts._visibility.specified }}</span>
|
<span>{{ i18n.ts._visibility.specified }}</span>
|
||||||
<span>{{ i18n.ts._visibility.specifiedDescription }}</span>
|
<span>{{ i18n.ts._visibility.specifiedDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<button key="localOnly" class="_button localOnly" :class="{ active: localOnly }" data-index="5" @click="localOnly = !localOnly">
|
<button key="localOnly" class="_button item localOnly" :class="{ active: localOnly }" data-index="5" @click="localOnly = !localOnly">
|
||||||
<div><i class="ti ti-world-off"></i></div>
|
<div class="icon"><i class="ti ti-world-off"></i></div>
|
||||||
<div>
|
<div class="body">
|
||||||
<span>{{ i18n.ts._visibility.localOnly }}</span>
|
<span>{{ i18n.ts._visibility.localOnly }}</span>
|
||||||
<span>{{ i18n.ts._visibility.localOnlyDescription }}</span>
|
<span>{{ i18n.ts._visibility.localOnlyDescription }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div><i :class="localOnly ? 'ti ti-toggle-right' : 'ti ti-toggle-left'"></i></div>
|
<div class="toggle"><i :class="localOnly ? 'ti ti-toggle-right' : 'ti ti-toggle-left'"></i></div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</MkModal>
|
</MkModal>
|
||||||
|
@ -89,7 +89,7 @@ function choose(visibility: typeof misskey.noteVisibilities[number]): void {
|
||||||
border-top: solid 0.5px var(--divider);
|
border-top: solid 0.5px var(--divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
> button {
|
> .item {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 8px 14px;
|
padding: 8px 14px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
@ -115,7 +115,7 @@ function choose(visibility: typeof misskey.noteVisibilities[number]): void {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
> *:nth-child(1) {
|
> .icon {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -127,7 +127,7 @@ function choose(visibility: typeof misskey.noteVisibilities[number]): void {
|
||||||
margin-bottom: auto;
|
margin-bottom: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
> *:nth-child(2) {
|
> .body {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -143,7 +143,7 @@ function choose(visibility: typeof misskey.noteVisibilities[number]): void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> *:nth-child(3) {
|
> .toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
Loading…
Reference in a new issue