fix: Routing page horizontal scroll for small mobile devices (#24663)
* fix: horizontal scroll for small mobile devices * address cubics comments * fix disable form toggle --------- Co-authored-by: Pallav <[email protected]>
This commit is contained in:
1 parent
8afe87ff75
commit
efcf68869d
4 files changed
+17
-17
No files matched your search
@@ -47,7 +47,7 @@ export const Switch = (
|
||||
className={cx(
|
||||
"flex h-auto w-fit flex-row items-center",
|
||||
fitToHeight && "h-fit",
|
||||
labelOnLeading && "flex-row-reverse",
|
||||
labelOnLeading && "w-full flex-row-reverse justify-between",
|
||||
padding && "hover:bg-subtle rounded-md p-1.5",
|
||||
classNames?.container
|
||||
)}>
|
||||
@@ -76,7 +76,7 @@ export const Switch = (
|
||||
htmlFor={id}
|
||||
className={cx(
|
||||
"text-emphasis font-medium",
|
||||
size === "sm" ? "m-1 text-xs" : "ml-2 mt-1 text-sm",
|
||||
size === "sm" ? "m-1 text-xs" : labelOnLeading ? "mr-2 mt-1 text-sm" : "ml-2 mt-1 text-sm",
|
||||
primitiveProps.disabled ? "cursor-not-allowed opacity-25" : "cursor-pointer",
|
||||
labelOnLeading && "flex-1"
|
||||
)}>
|
||||
|
||||
Reference in new issue
Block a user