lsc 2 vuotta sitten
vanhempi
commit
7a7128ae38
1 muutettua tiedostoa jossa 8 lisäystä ja 7 poistoa
  1. 8 7
      src/components/components/askStatic.vue

+ 8 - 7
src/components/components/askStatic.vue

@@ -18,7 +18,8 @@
             </div>
             <div class="a_add_persent">
               <div class="a_add_persent_div" v-for="(item1, checkIndex) in item.askItem" :key="checkIndex">
-                <span :class="{ right: item.answer == checkIndex }" v-html="item.checkList[checkIndex]"></span>
+                <span :class="{ right: item.answer == checkIndex }"><span style="width:calc(100% - 40px)"
+                    v-html="item.checkList[checkIndex]"></span></span>
                 <span>{{
                 checkJson[index].checkCount[checkIndex]
                 ? checkJson[index].checkCount[checkIndex]
@@ -237,18 +238,18 @@ export default {
 .right {
   color: rgb(0 123 255);
   position: relative;
+  display: flex;
+  align-items: center;
 }
 
 .right::after {
   content: "";
-  position: absolute;
+  /* position: absolute; */
   background-image: url(../../assets/right.png);
-  width: 15px;
-  height: 15px;
+  min-width: 15px;
+  min-height: 15px;
   background-size: 100% 100%;
-  top: 50%;
-  margin-left: 10px;
-  transform: translateY(-50%);
+  margin: 0 10px;
 }
 
 .dialog_diy>>>.el-dialog__header,