diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-10-29 06:37:23 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-10-29 06:37:23 +0000 |
| commit | c79da5c4565f664290aa43fa925f978eb2810a2d (patch) | |
| tree | f5331520871810507e4f6fe15a8bf455fcf7924d /src/components/status_popover/status_popover.js | |
| parent | 3a3db35985ea8e2bb6babc92fcd247fc86df0309 (diff) | |
| parent | 237d95b0f73d9d20df0b8c4668110ce09a5527de (diff) | |
Merge branch '599' into 'develop'
Fix "Posts get cut off when there is not enough space to display them at the bottom"
Closes #599
See merge request pleroma/pleroma-fe!863
Diffstat (limited to 'src/components/status_popover/status_popover.js')
| -rw-r--r-- | src/components/status_popover/status_popover.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/components/status_popover/status_popover.js b/src/components/status_popover/status_popover.js new file mode 100644 index 00000000..19f16bd9 --- /dev/null +++ b/src/components/status_popover/status_popover.js @@ -0,0 +1,34 @@ +import { find } from 'lodash' + +const StatusPopover = { + name: 'StatusPopover', + props: [ + 'statusId' + ], + data () { + return { + popperOptions: { + modifiers: { + preventOverflow: { padding: { top: 50 }, boundariesElement: 'viewport' } + } + } + } + }, + computed: { + status () { + return find(this.$store.state.statuses.allStatuses, { id: this.statusId }) + } + }, + components: { + Status: () => import('../status/status.vue') + }, + methods: { + enter () { + if (!this.status) { + this.$store.dispatch('fetchStatus', this.statusId) + } + } + } +} + +export default StatusPopover |
