Fixing horizontal tabs (#6454)
* Fix spacing and height * Testing if its timing out or something else * So, timep=out is the problem. Increase the timeout to 1s for now Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
1 parent
da18aae21c
commit
8afbc3b457
3 files changed
+8
-4
No files matched your search
@@ -178,8 +178,9 @@ test.describe("Routing Forms", () => {
|
||||
});
|
||||
const headerEls = page.locator("[data-testid='reporting-header'] th");
|
||||
// Once the response is there, React would soon render it, so 500ms is enough
|
||||
// FIXME: Sometimes it takes more than 500ms, so added a timeout of 1000ms for now. There might be something wrong with rendering.
|
||||
await headerEls.first().waitFor({
|
||||
timeout: 500,
|
||||
timeout: 1000,
|
||||
});
|
||||
const numHeaderEls = await headerEls.count();
|
||||
const headers = [];
|
||||
|
||||
@@ -8,8 +8,11 @@ export interface NavTabProps {
|
||||
|
||||
const HorizontalTabs = function ({ tabs, linkProps, actions, ...props }: NavTabProps) {
|
||||
return (
|
||||
<div className="mb-2 max-w-[calc(100%+40px)] lg:mb-5">
|
||||
<nav className="no-scrollbar flex overflow-scroll rounded-md border p-1" aria-label="Tabs" {...props}>
|
||||
<div className="mb-2 h-9 max-w-[calc(100%+40px)] lg:mb-5">
|
||||
<nav
|
||||
className="no-scrollbar flex max-h-9 space-x-1 overflow-scroll rounded-md border p-1"
|
||||
aria-label="Tabs"
|
||||
{...props}>
|
||||
{tabs.map((tab, idx) => (
|
||||
<HorizontalTabItem {...tab} key={idx} {...linkProps} />
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user