Skip to content

Commit

Permalink
fixed input size on mobile, fixed settings (#4360)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeerRich authored Sep 11, 2022
1 parent 63aae60 commit e50bc0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/ui/v2/core/form/fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(pro
{...props}
ref={ref}
className={classNames(
"mb-[7px] block h-9 w-full rounded-md border border-gray-300 py-2 px-3 hover:border-gray-400 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1 sm:text-sm",
"mb-[7px] block h-9 w-full rounded-md border border-gray-300 py-2 px-3 text-sm hover:border-gray-400 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1",
props.className
)}
/>
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/v2/core/layouts/SettingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const MobileSettingsContainer = (props: { onSideContainerOpen?: () => void }) =>

return (
<>
<nav className="flex items-center justify-between border-b border-gray-100 bg-gray-50 p-4 lg:hidden">
<nav className="fixed flex w-full items-center justify-between border-b border-gray-100 bg-gray-50 p-4 sm:relative lg:hidden">
<div className="flex items-center space-x-3 ">
<Button
StartIcon={Icon.FiMenu}
Expand Down Expand Up @@ -153,7 +153,7 @@ export default function SettingsLayout({
<MobileSettingsContainer onSideContainerOpen={() => setSideContainerOpen(!sideContainerOpen)} />
}>
<div className="flex flex-1 [&>*]:flex-1">
<div className="color-black mx-auto mt-8 max-w-4xl justify-center px-4 sm:px-6 md:px-8 ">
<div className="mx-auto max-w-4xl justify-center">
<ShellHeader />
{children}
</div>
Expand All @@ -168,7 +168,7 @@ function ShellHeader() {
const { meta } = useMeta();
const { t, isLocaleReady } = useLocale();
return (
<header className="mx-auto block max-w-4xl justify-between sm:flex md:pt-8">
<header className="mx-auto block max-w-4xl justify-between pt-12 sm:flex sm:pt-8">
<div className="mb-8 w-full border-b border-gray-200 pb-8">
{meta.title && isLocaleReady ? (
<h1 className="font-cal mb-1 text-xl font-bold capitalize tracking-wide text-black">
Expand Down
4 changes: 1 addition & 3 deletions packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ const VerticalTabItem: FC<VerticalTabItemProps> = ({ name, href, tabName, info,
props.className
)}
aria-current={isCurrent ? "page" : undefined}>
{props.icon && (
<props.icon className="mt-2 mr-[10px] h-[16px] w-[16px] self-start stroke-[2px] md:mt-0" />
)}
{props.icon && <props.icon className="mr-[10px] h-[16px] w-[16px] self-start stroke-[2px]" />}
<div>
<p>{t(name)}</p>
{info && <p className="pt-1 text-xs font-normal">{t(info)}</p>}
Expand Down

0 comments on commit e50bc0f

Please sign in to comment.