Przeglądaj źródła

style(web): 将待办页签摆到横幅左下角

sy 3 dni temu
rodzic
commit
888f20de86

+ 8 - 8
web-scaffold/src/pages/WorkOrderMinePage.tsx

@@ -107,15 +107,15 @@ function WorkOrderMineInner() {
         <time dateTime={today}><CalendarDays size={15} aria-hidden="true" />{WORK_DATE_FORMAT.format(new Date(today + "T12:00:00"))}</time>
         <h1>我的待办</h1>
         <p>查看分派给你的工单,安排处理与跟进。</p>
-        <nav className="work-order-mine-views" aria-label="待办分组">
-          {MINE_QUEUES.map(({ id, label, icon: Icon }) => <Link key={id} to={queueUrl(id)} replace state={location.state}
-            aria-current={activeQueue.id === id ? "page" : undefined}>
-            <Icon size={16} aria-hidden="true" />
-            <span>{label}</span>
-            {loaded && <small className="work-order-mine-view-count" data-priority={id === "due" && counts[id] > 0}>{counts[id]}</small>}
-          </Link>)}
-        </nav>
       </div>
+      <nav className="work-order-mine-views" aria-label="待办分组">
+        {MINE_QUEUES.map(({ id, label, icon: Icon }) => <Link key={id} to={queueUrl(id)} replace state={location.state}
+          aria-current={activeQueue.id === id ? "page" : undefined}>
+          <Icon size={16} aria-hidden="true" />
+          <span>{label}</span>
+          {loaded && <small className="work-order-mine-view-count" data-priority={id === "due" && counts[id] > 0}>{counts[id]}</small>}
+        </Link>)}
+      </nav>
     </header>
 
     <div className="work-order-mine-toolbar">

+ 9 - 4
web-scaffold/src/styles/work-order-mine.css

@@ -7,10 +7,13 @@
   position: relative;
   isolation: isolate;
   display: flex;
-  align-items: center;
+  flex-direction: column;
+  align-items: flex-start;
+  justify-content: space-between;
+  gap: 14px;
   min-height: 184px;
   overflow: hidden;
-  padding: 23px 26px;
+  padding: 23px 26px 12px;
   border: 1px solid var(--border);
   border-radius: 14px;
   background: var(--primary-soft);
@@ -36,13 +39,14 @@
 .work-order-mine-hero-copy p { margin: 0; color: var(--text-secondary); font-size: var(--type-support); }
 .work-order-mine-toolbar, .work-order-mine-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; min-width: 0; }
 .work-order-mine-views {
+  position: relative;
+  z-index: 1;
   display: flex;
   width: max-content;
   gap: 4px;
   min-width: 0;
   max-width: 100%;
   overflow-x: auto;
-  margin-top: 14px;
   padding: 4px;
   border: 1px solid var(--border);
   border-radius: 10px;
@@ -119,7 +123,7 @@
   @keyframes work-order-mine-spin { to { rotate: 360deg; } }
 }
 @media (max-width: 720px) {
-  .work-order-mine-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 19px 0 0; }
+  .work-order-mine-hero { align-items: stretch; min-height: 0; padding: 19px 0 12px; }
   .work-order-mine-hero-copy { padding-inline: 17px; }
   .work-order-mine-hero-image {
     position: static;
@@ -131,6 +135,7 @@
     aspect-ratio: 21 / 5;
     mask-image: linear-gradient(to bottom, transparent, #000 22%);
   }
+  .work-order-mine-views { order: 2; max-width: calc(100% - 34px); margin-inline: 17px; }
 }
 @media (max-width: 480px) {
   .work-order-mine-page { gap: 12px; }