瀏覽代碼

style(appeal.vue): 调整删除按钮的样式和位置

将删除按钮从右上角调整到右下角,并更改图标为删除图标,同时优化了按钮的样式和颜色,以提升用户体验
闪电 8 月之前
父節點
當前提交
ad0ebcd9e4
共有 2 個文件被更改,包括 17 次插入6 次删除
  1. 12 0
      src/assets/style.css
  2. 5 6
      src/views/quality/appeal.vue

+ 12 - 0
src/assets/style.css

@@ -764,6 +764,18 @@ video {
764 764
   left: -55px;
765 765
 }
766 766
 
767
+.-bottom-0 {
768
+  bottom: -0px;
769
+}
770
+
771
+.-right-5 {
772
+  right: -1.25rem;
773
+}
774
+
775
+.-bottom-1 {
776
+  bottom: -0.25rem;
777
+}
778
+
767 779
 .-z-0 {
768 780
   z-index: 0;
769 781
 }

+ 5 - 6
src/views/quality/appeal.vue

@@ -112,13 +112,12 @@
112 112
                                     </div>
113 113
                                     <div class="mt-2 text-sm">{{ appeal.content }}</div>
114 114
                                     <div class="mt-1 text-xs text-red-500">{{ appeal.warning }}</div>
115
-                                    <el-button
116
-                                        class="hidden group-hover:block absolute -top-0 -right-0 !p-1 !rounded-tl-none !rounded-br-none bg-red-500 text-white shadow-md"
117
-                                        @click.stop="removeAppeal(index)">
118
-                                        <el-icon class="text-xs">
119
-                                            <Close />
115
+                                    <div class="hidden group-hover:block absolute -bottom-1 right-1 !p-1 !rounded-tl-none !rounded-br-none">
116
+                                        <el-icon class="text-xs " @click.stop="removeAppeal(index)" style="color: #ff4d4f;">
117
+                                            <Delete />
120 118
                                         </el-icon>
121
-                                    </el-button>
119
+                                        
120
+                                    </div>
122 121
                                 </div>
123 122
                             </div>
124 123
                         </div>