Skip to content

Commit

Permalink
fix: responsive button size
Browse files Browse the repository at this point in the history
  • Loading branch information
mszekiel committed Oct 8, 2024
1 parent 9268351 commit a217de7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/elements-react/src/components/form/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ export function OryForm({ children, nodes }: OryFormProps) {
}

if (
"lookup_secret_regenerate" in submitData ||
"lookup_secret_confirm" in submitData ||
"lookup_secret_reveal" in submitData
"lookup_secret_reveal" in submitData ||
"lookup_secret_regenerate" in submitData
) {
submitData.method = "lookup_secret"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const buttonStyles = cva(
},
size: {
default: ["px-4 py-3"],
large: ["px-4 py-4.5"],
large: ["px-4 py-4.5 max-md:py-3"],
},
defaultVariants: {
intent: "primary",
Expand Down Expand Up @@ -77,7 +77,9 @@ export const DefaultButton = ({
attributes.name.includes("webauthn") ||
attributes.name.includes("lookup_secret")

const isSmall = flowType === FlowType.Settings
const isSmall =
flowType === FlowType.Settings &&
attributes.name !== "webauthn_register_trigger"

return (
<button
Expand Down

0 comments on commit a217de7

Please sign in to comment.