2018-02-27 06:54:21 +01:00
|
|
|
<div class="compose-box {{overLimit ? 'over-char-limit' : ''}}">
|
2018-03-03 19:11:32 +01:00
|
|
|
<ComposeAuthor />
|
|
|
|
<ComposeInput :realm />
|
2018-02-27 07:22:56 +01:00
|
|
|
<ComposeLengthGauge />
|
2018-03-03 19:11:32 +01:00
|
|
|
<ComposeToolbar :realm />
|
2018-02-27 07:22:56 +01:00
|
|
|
<ComposeLengthIndicator />
|
2018-03-03 19:11:32 +01:00
|
|
|
<ComposeMedia :realm />
|
2018-02-27 07:22:56 +01:00
|
|
|
<ComposeButton />
|
2018-02-26 01:26:43 +01:00
|
|
|
</div>
|
|
|
|
<style>
|
2018-02-27 06:54:21 +01:00
|
|
|
.compose-box {
|
2018-02-26 01:26:43 +01:00
|
|
|
border-radius: 4px;
|
|
|
|
padding: 20px;
|
|
|
|
display: grid;
|
|
|
|
align-items: flex-start;
|
|
|
|
grid-template-areas:
|
2018-03-02 06:21:49 +01:00
|
|
|
"avatar display-name handle handle"
|
|
|
|
"avatar input input input"
|
|
|
|
"avatar gauge gauge gauge"
|
|
|
|
"avatar toolbar toolbar length"
|
|
|
|
"avatar media media media"
|
|
|
|
"avatar button button button";
|
2018-02-27 05:55:49 +01:00
|
|
|
grid-template-columns: min-content minmax(0, max-content) 1fr 1fr;
|
2018-02-26 01:26:43 +01:00
|
|
|
border-bottom: 1px solid var(--main-border);
|
|
|
|
width: 560px;
|
|
|
|
max-width: calc(100vw - 40px);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
2018-02-27 06:54:21 +01:00
|
|
|
.compose-box {
|
2018-02-26 01:26:43 +01:00
|
|
|
padding: 10px 10px;
|
|
|
|
max-width: calc(100vw - 20px);
|
|
|
|
width: 580px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2018-02-27 06:50:03 +01:00
|
|
|
import ComposeToolbar from './ComposeToolbar.html'
|
|
|
|
import ComposeLengthGauge from './ComposeLengthGauge.html'
|
|
|
|
import ComposeLengthIndicator from './ComposeLengthIndicator.html'
|
2018-02-27 06:54:21 +01:00
|
|
|
import ComposeAuthor from './ComposeAuthor.html'
|
2018-02-27 07:22:56 +01:00
|
|
|
import ComposeInput from './ComposeInput.html'
|
|
|
|
import ComposeButton from './ComposeButton.html'
|
2018-03-02 06:21:49 +01:00
|
|
|
import ComposeMedia from './ComposeMedia.html'
|
2018-02-26 02:21:17 +01:00
|
|
|
|
2018-02-26 01:26:43 +01:00
|
|
|
export default {
|
|
|
|
components: {
|
2018-02-27 06:54:21 +01:00
|
|
|
ComposeAuthor,
|
2018-02-27 06:50:03 +01:00
|
|
|
ComposeToolbar,
|
|
|
|
ComposeLengthGauge,
|
2018-02-27 07:22:56 +01:00
|
|
|
ComposeLengthIndicator,
|
|
|
|
ComposeInput,
|
2018-03-02 06:21:49 +01:00
|
|
|
ComposeButton,
|
|
|
|
ComposeMedia
|
2018-02-26 01:26:43 +01:00
|
|
|
}
|
|
|
|
}
|
2018-02-26 09:24:28 +01:00
|
|
|
</script>
|