fix button size issue

This commit is contained in:
lingdocs 2022-07-29 14:52:52 -05:00
parent acb6bdfa3e
commit c9e4c253e4
2 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "3.6.3", "version": "3.6.4",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -14,12 +14,8 @@ function ModeSelect({ value, onChange }: {
} }
export function ScriptSelect({ value, onChange }: { value: "p" | "f", onChange: (m: "p" | "f") => void }) { 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"> return <button style={{ marginLeft: "1.5rem" }} className="btn btn-sm btn-light" onClick={() => onChange(value === "p" ? "f" : "p")}>
{value === "p" ? <div className="clickable" onClick={() => onChange("f")}> {value === "p" ? "Ps" : "Phon."}
Ps
</div> : <div className="clickable" onClick={() => onChange("p")}>
Phon.
</div>}
</button>; </button>;
} }