Browse Source

fix(web): 完整显示我的待办横幅图片

sy 2 ngày trước cách đây
mục cha
commit
b24cd035c4
1 tập tin đã thay đổi với 16 bổ sung và 8 xóa
  1. 16 8
      web-scaffold/src/styles/work-order-mine.css

+ 16 - 8
web-scaffold/src/styles/work-order-mine.css

@@ -8,24 +8,28 @@
   isolation: isolate;
   display: flex;
   align-items: center;
-  min-height: 164px;
+  min-height: 184px;
   overflow: hidden;
   padding: 23px 26px;
   border: 1px solid var(--border);
   border-radius: 14px;
+  background: #e2e0e1;
   color: var(--foreground);
   box-shadow: var(--shadow-card);
 }
 .work-order-mine-hero-image {
   position: absolute;
   z-index: 0;
-  inset: 0;
-  width: 100%;
+  inset: 0 0 0 auto;
+  width: auto;
+  max-width: 100%;
   height: 100%;
-  object-fit: cover;
-  object-position: center 62%;
+  object-fit: contain;
+  object-position: right center;
+  mask-image: linear-gradient(to right, transparent, #000 30%);
   pointer-events: none;
 }
+.dark .work-order-mine-hero { background: var(--card); }
 .dark .work-order-mine-hero-image { filter: brightness(.37) saturate(.7); }
 .work-order-mine-hero-copy { position: relative; z-index: 1; min-width: 0; }
 .work-order-mine-hero-copy time { display: flex; align-items: center; gap: 6px; color: var(--primary-soft-foreground); font-size: 12px; font-weight: 600; }
@@ -114,10 +118,14 @@
   @keyframes work-order-mine-spin { to { rotate: 360deg; } }
 }
 @media (max-width: 720px) {
-  .work-order-mine-hero { padding: 19px 17px; }
+  .work-order-mine-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 19px 0 0; }
+  .work-order-mine-hero-copy { padding-inline: 17px; }
   .work-order-mine-hero-image {
-    object-position: right 62%;
-    mask-image: linear-gradient(to right, transparent, #000 75%);
+    position: static;
+    order: 1;
+    width: 100%;
+    height: auto;
+    mask-image: linear-gradient(to bottom, transparent, #000 22%);
   }
 }
 @media (max-width: 480px) {