Fix URL bar spacing

This commit is contained in:
Gregory Schier
2023-03-20 17:01:29 -07:00
parent 268545c728
commit 74a1cb61c1
3 changed files with 10 additions and 5 deletions

View File

@@ -47,8 +47,9 @@ export function Input({
const inputClassName = classnames(
className,
'!bg-transparent min-w-0 h-full w-full focus:outline-none placeholder:text-placeholder',
!!leftSlot && '!pl-0.5',
!!rightSlot && '!pr-0.5',
// Bump things over if the slots are occupied
leftSlot && 'pl-0.5 -ml-2',
rightSlot && 'pr-0.5 -mr-2',
);
const isValid = useMemo(() => {