logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

post_status_modal.vue (875B)


  1. <template>
  2. <Modal
  3. v-if="isLoggedIn && !resettingForm"
  4. :is-open="modalActivated"
  5. class="post-form-modal-view"
  6. @backdropClicked="closeModal"
  7. >
  8. <div class="post-form-modal-panel panel">
  9. <div class="panel-heading">
  10. <h1 class="title">
  11. {{ $t('post_status.new_status') }}
  12. </h1>
  13. </div>
  14. <PostStatusForm
  15. class="panel-body"
  16. v-bind="params"
  17. :closeable="true"
  18. @posted="resetAndClose"
  19. @draft-done="resetAndClose"
  20. />
  21. </div>
  22. </Modal>
  23. </template>
  24. <script src="./post_status_modal.js"></script>
  25. <style lang="scss">
  26. .modal-view.post-form-modal-view {
  27. align-items: flex-start;
  28. }
  29. .post-form-modal-panel {
  30. flex-shrink: 0;
  31. margin-top: 25%;
  32. margin-bottom: 2em;
  33. width: 100%;
  34. max-width: 700px;
  35. @media (orientation: landscape) {
  36. margin-top: 8%;
  37. }
  38. }
  39. </style>