Przeglądaj źródła

修复ios16 样式问题

1
mo 2 lat temu
rodzic
commit
7cfe7dbc73

+ 8 - 1
src/school/school-detail/index.module.less

@@ -65,7 +65,7 @@
         line-height: 21px;
         span {
           display: inline-block;
-          width: 60px;
+          width: 68px;
           text-align: left;
           margin-right: 20px;
           font-size: 15px;
@@ -81,6 +81,10 @@
       // }
     }
   }
+  .flexP {
+    display: flex;
+    flex-direction: row;
+  }
   .teacherList {
     margin: 0 13px 54px;
     .teacherTitle {
@@ -125,6 +129,9 @@
   display: flex;
   flex-direction: column;
   align-items: center;
+  p {
+    width: 50px;
+  }
   :global {
     .van-button {
       line-height: 44px;

+ 2 - 2
src/school/school-detail/index.tsx

@@ -120,8 +120,8 @@ export default defineComponent({
                 <span>邮箱账号</span>
                 {state.info.email}
               </p>
-              <p>
-                <span>学校地址</span> {state.info.address}
+              <p class={styles.flexP}>
+                <span>学校地址</span> <p>{state.info.address}</p>
               </p>
             </div>
           </div>

+ 2 - 2
src/school/school-detail/modals/teacher-item.module.less

@@ -65,11 +65,11 @@
     color: #333333;
     line-height: 20px;
     p {
-      width: 42px;
+      width: 48px;
       margin-bottom: 6px;
     }
     .statusTagWrap {
-      width: 275px;
+      width: 265px;
       display: flex;
       flex-direction: row;
       align-items: top;