fix button size issue
This commit is contained in:
parent
acb6bdfa3e
commit
c9e4c253e4
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/pashto-inflector",
|
||||
"version": "3.6.3",
|
||||
"version": "3.6.4",
|
||||
"author": "lingdocs.com",
|
||||
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
||||
"homepage": "https://verbs.lingdocs.com",
|
||||
|
|
|
@ -14,12 +14,8 @@ function ModeSelect({ value, onChange }: {
|
|||
}
|
||||
|
||||
export function ScriptSelect({ value, onChange }: { value: "p" | "f", onChange: (m: "p" | "f") => void }) {
|
||||
return <button style={{ marginLeft: "1.5rem" }} className="btn btn-sm btn-light">
|
||||
{value === "p" ? <div className="clickable" onClick={() => onChange("f")}>
|
||||
Ps
|
||||
</div> : <div className="clickable" onClick={() => onChange("p")}>
|
||||
Phon.
|
||||
</div>}
|
||||
return <button style={{ marginLeft: "1.5rem" }} className="btn btn-sm btn-light" onClick={() => onChange(value === "p" ? "f" : "p")}>
|
||||
{value === "p" ? "Ps" : "Phon."}
|
||||
</button>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue