aboutsummaryrefslogtreecommitdiff
path: root/src/components/popover/popover.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-03 12:56:31 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-03 12:56:31 +0300
commit21d1f557f64cceda54755e2817d4799f1dbbea4f (patch)
tree0f0ba7c61651990bed648ee2ec26a3b118dc491f /src/components/popover/popover.js
parent961099d34a3852d1019a00d390ad638fe45118e4 (diff)
change styles for the dropdown, make things work nicely on mobile
Diffstat (limited to 'src/components/popover/popover.js')
-rw-r--r--src/components/popover/popover.js6
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 () {