浏览代码

气泡限制宽度

gqx 2 年之前
父节点
当前提交
a2b10b5a03
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/views/room/fangtailive.vue

+ 10 - 1
src/views/room/fangtailive.vue

@@ -171,7 +171,11 @@
                         style="font-size: 40px"
                       />
                     </div>
-                    <a-popover placement="rightTop" :mouseLeaveDelay="0">
+                    <a-popover
+                      placement="rightTop"
+                      :mouseLeaveDelay="0"
+                      overlayClassName="popoverWidth"
+                    >
                       <template
                         slot="content"
                         v-if="
@@ -2052,4 +2056,9 @@ export default {
   font-size: 13px;
   padding: 8px 16px;
 }
+</style>
+<style>
+.popoverWidth {
+  width: 220px !important;
+}
 </style>