mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
Update post-form.vue
This commit is contained in:
parent
20cb9815c4
commit
86f09ad4bc
1 changed files with 13 additions and 7 deletions
|
@ -9,6 +9,12 @@
|
||||||
<button class="cancel _button" @click="cancel"><fa :icon="faTimes"/></button>
|
<button class="cancel _button" @click="cancel"><fa :icon="faTimes"/></button>
|
||||||
<div>
|
<div>
|
||||||
<span class="text-count" :class="{ over: trimmedLength(text) > 500 }">{{ 500 - trimmedLength(text) }}</span>
|
<span class="text-count" :class="{ over: trimmedLength(text) > 500 }">{{ 500 - trimmedLength(text) }}</span>
|
||||||
|
<button class="_button visibility" @click="setVisibility" ref="visibilityButton">
|
||||||
|
<span v-if="visibility === 'public'"><fa :icon="faGlobe"/></span>
|
||||||
|
<span v-if="visibility === 'home'"><fa :icon="faHome"/></span>
|
||||||
|
<span v-if="visibility === 'followers'"><fa :icon="faUnlock"/></span>
|
||||||
|
<span v-if="visibility === 'specified'"><fa :icon="faEnvelope"/></span>
|
||||||
|
</button>
|
||||||
<button class="submit _buttonPrimary" :disabled="!canPost" @click="post">{{ submitText }}</button>
|
<button class="submit _buttonPrimary" :disabled="!canPost" @click="post">{{ submitText }}</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -37,12 +43,6 @@
|
||||||
<button class="_button" @click="useCw = !useCw" :class="{ active: useCw }"><fa :icon="faEyeSlash"/></button>
|
<button class="_button" @click="useCw = !useCw" :class="{ active: useCw }"><fa :icon="faEyeSlash"/></button>
|
||||||
<button class="_button" @click="insertMention"><fa :icon="faAt"/></button>
|
<button class="_button" @click="insertMention"><fa :icon="faAt"/></button>
|
||||||
<button class="_button" @click="insertEmoji"><fa :icon="faLaughSquint"/></button>
|
<button class="_button" @click="insertEmoji"><fa :icon="faLaughSquint"/></button>
|
||||||
<button class="_button" @click="setVisibility" ref="visibilityButton">
|
|
||||||
<span v-if="visibility === 'public'"><fa :icon="faGlobe"/></span>
|
|
||||||
<span v-if="visibility === 'home'"><fa :icon="faHome"/></span>
|
|
||||||
<span v-if="visibility === 'followers'"><fa :icon="faUnlock"/></span>
|
|
||||||
<span v-if="visibility === 'specified'"><fa :icon="faEnvelope"/></span>
|
|
||||||
</button>
|
|
||||||
<button class="_button" v-if="visibility !== 'specified'" @click="localOnly = !localOnly" :class="{ active: localOnly }"><fa :icon="faBiohazard"/></button>
|
<button class="_button" v-if="visibility !== 'specified'" @click="localOnly = !localOnly" :class="{ active: localOnly }"><fa :icon="faBiohazard"/></button>
|
||||||
</footer>
|
</footer>
|
||||||
<input ref="file" class="file _button" type="file" multiple="multiple" @change="onChangeFile"/>
|
<input ref="file" class="file _button" type="file" multiple="multiple" @change="onChangeFile"/>
|
||||||
|
@ -614,8 +614,14 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .visibility {
|
||||||
|
height: 34px;
|
||||||
|
width: 34px;
|
||||||
|
margin: 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
> .submit {
|
> .submit {
|
||||||
margin: 16px;
|
margin: 16px 16px 16px 0;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
|
Loading…
Reference in a new issue