mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
fix: stabilize browse tabs and toasts
This commit is contained in:
committed by
Vyctor H. Brzezowski
parent
d5ef783708
commit
926ecde45f
@@ -155,6 +155,20 @@ describe("restored UI design contract", () => {
|
||||
expect(cliBand).toContain("max-width: none");
|
||||
});
|
||||
|
||||
it("keeps browse segmented labels stable across active state changes", () => {
|
||||
const css = styles();
|
||||
|
||||
expect(cssRule(css, ".browse-tab")).toContain("font-weight: 600");
|
||||
expect(cssRule(css, ".browse-tab.is-active")).not.toContain("font-weight");
|
||||
});
|
||||
|
||||
it("makes global toasts dismissible", () => {
|
||||
const rootSource = rootRoute();
|
||||
|
||||
expect(rootSource).toContain("<Toaster");
|
||||
expect(rootSource).toContain("closeButton");
|
||||
});
|
||||
|
||||
it("keeps migrated application surfaces on canonical semantic tokens", () => {
|
||||
const css = styles();
|
||||
const sharedCss = designSystemStyles();
|
||||
|
||||
@@ -202,6 +202,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
|
||||
<Footer />
|
||||
</div>
|
||||
<Toaster
|
||||
closeButton
|
||||
position="bottom-right"
|
||||
toastOptions={{
|
||||
style: {
|
||||
|
||||
+1
-2
@@ -18092,7 +18092,7 @@ body:has(.browse-page-borderless-header) .navbar {
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
@@ -18114,7 +18114,6 @@ body:has(.browse-page-borderless-header) .navbar {
|
||||
.browse-tab.is-active {
|
||||
border-bottom-color: var(--ink);
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.browse-tab-count {
|
||||
|
||||
Reference in New Issue
Block a user