diff options
| author | lain <lain@soykaf.club> | 2020-08-06 10:17:44 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-08-06 10:17:44 +0000 |
| commit | 3e6e6096bfd1dad3283396c086e45b09523faaee (patch) | |
| tree | dc322fff1bd377b920669287fbdd5653ba9bfede /src/components/popover/popover.js | |
| parent | 9a10ad38260cc4d1ef93a6988ef2cb0941080156 (diff) | |
| parent | e57562959f5e71fd6e3bf180e2856d504ffb1fcf (diff) | |
Merge branch 'feat/separate-timeline-navigation-from-navpanel' into 'develop'
Separate timeline navigation from navpanel
See merge request pleroma/pleroma-fe!1172
Diffstat (limited to 'src/components/popover/popover.js')
| -rw-r--r-- | src/components/popover/popover.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js index a40a9195..695f73b9 100644 --- a/src/components/popover/popover.js +++ b/src/components/popover/popover.js @@ -18,7 +18,9 @@ const Popover = { // Takes a x/y object and tells how many pixels to offset from // anchor point on either axis offset: Object, - // Additional styles you may want for the popover container + // Replaces the classes you may want for the popover container. + // Use 'popover-default' in addition to get the default popover + // styles with your custom class. popoverClass: String }, data () { @@ -106,7 +108,7 @@ const Popover = { // single translate or translate3d resulted in blurry text. this.styles = { opacity: 1, - transform: `translateX(${Math.floor(translateX)}px) translateY(${Math.floor(translateY)}px)` + transform: `translateX(${Math.round(translateX)}px) translateY(${Math.round(translateY)}px)` } }, showPopover () { |
