Add quoting by url / in replies
This commit is contained in:
parent
ac84ff247f
commit
7aefda4211
18 changed files with 501 additions and 110 deletions
55
src/components/quote/quote_form.vue
Normal file
55
src/components/quote/quote_form.vue
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<template>
|
||||
<div
|
||||
v-if="visible"
|
||||
class="quote-form"
|
||||
>
|
||||
<div class="input-container">
|
||||
<input
|
||||
v-model="text"
|
||||
type="text"
|
||||
size="1"
|
||||
class="input"
|
||||
:placeholder="$t('post_status.quote_url')"
|
||||
>
|
||||
</div>
|
||||
<Quote
|
||||
:status-id="params.id"
|
||||
:status-url="params.url"
|
||||
:status-visible="quoteVisible"
|
||||
:initially-expanded="true"
|
||||
:loading="loading"
|
||||
@loading="setLoading"
|
||||
@error="handleError"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./quote_form.js"></script>
|
||||
|
||||
<style lang="scss">
|
||||
.quote-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0 0.5em 0.5em;
|
||||
|
||||
.input-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
white-space: pre;
|
||||
display: flex;
|
||||
flex-flow: row-reverse;
|
||||
line-height: 2;
|
||||
column-gap: 0.5em;
|
||||
align-items: center;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue