Преглед на файлове

fix(paas): align narrow directory header and expose chat title

Stack the agent heading and actions on narrow screens so search and
buttons share the page edge, and expose the topbar chat title as the
page heading for assistive navigation.
241880436@seecoder.cn преди 5 дни
родител
ревизия
8052b9a49b
променени са 2 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 2 0
      packages/app/src/pages/paas/index.tsx
  2. 11 0
      packages/app/src/pages/paas/paas.css

+ 2 - 0
packages/app/src/pages/paas/index.tsx

@@ -402,6 +402,8 @@ export default function PaasWorkspace(props: { standalone?: boolean; onOpenDevel
                 class="paas-topbar-chat-title"
                 classList={{ "is-overflowing": titleOverflow() }}
                 ref={(element) => setTitleElement(element)}
+                role="heading"
+                aria-level={1}
                 title={ui.chatTitle}
               >
                 {ui.chatTitle}

+ 11 - 0
packages/app/src/pages/paas/paas.css

@@ -2802,3 +2802,14 @@
 .paas-workspace .paas-chat-header-actions {
   flex-wrap: nowrap;
 }
+
+@media (max-width: 720px) {
+  .paas-directory-heading {
+    flex-direction: column;
+    align-items: stretch;
+  }
+  .paas-directory-actions {
+    width: 100%;
+    justify-content: flex-start;
+  }
+}