fixed AP diagrams

This commit is contained in:
lingdocs 2022-06-22 13:12:18 -05:00
parent 17f62439b5
commit 38adbf0e1b
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
"@formkit/auto-animate": "^1.0.0-beta.1", "@formkit/auto-animate": "^1.0.0-beta.1",
"@fortawesome/fontawesome-free": "^5.15.4", "@fortawesome/fontawesome-free": "^5.15.4",
"@lingdocs/lingdocs-main": "^0.3.1", "@lingdocs/lingdocs-main": "^0.3.1",
"@lingdocs/pashto-inflector": "^3.0.4", "@lingdocs/pashto-inflector": "^3.0.5",
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10", "@testing-library/user-event": "^12.1.10",

View File

@ -15,7 +15,7 @@ function BlockDiagram({ opts, children }: {
? renderAPSelection(children) ? renderAPSelection(children)
: renderNPSelection(children, false, false, "subject", "none"); : renderNPSelection(children, false, false, "subject", "none");
return <div className="mb-3"> return <div className="mb-3">
<div className="d-flex flex-row justify-content-center" style={{ maxWidth: "100%" }}> <div className="d-flex flex-row justify-content-center text-center" style={{ maxWidth: "100%" }}>
{rendered.type === "NP" {rendered.type === "NP"
? <NPBlock script="f" opts={opts} english={rendered.selection.e}>{rendered}</NPBlock> ? <NPBlock script="f" opts={opts} english={rendered.selection.e}>{rendered}</NPBlock>
: <APBlock script="f" opts={opts} english={rendered.selection.e}>{rendered}</APBlock>} : <APBlock script="f" opts={opts} english={rendered.selection.e}>{rendered}</APBlock>}

View File

@ -1695,10 +1695,10 @@
rambda "^6.7.0" rambda "^6.7.0"
react-select "^5.2.2" react-select "^5.2.2"
"@lingdocs/pashto-inflector@^3.0.4": "@lingdocs/pashto-inflector@^3.0.5":
version "3.0.4" version "3.0.5"
resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-3.0.4.tgz#6ea750f66509e9e88c8d6fa01298a4e9fb07a807" resolved "https://npm.lingdocs.com/@lingdocs%2fpashto-inflector/-/pashto-inflector-3.0.5.tgz#cd3d0d51a20404501710b1bd50de2b0b1e774c08"
integrity sha512-fUVTuQBeJ0YrtbBbj0JUlCEgrnKLadD0dL6Ig6eawDA0Fayrfp/yeuz1MsFRcYosdtNx5juY5JQyioh9AgC4YQ== integrity sha512-xUhT0nMKw7y0bbQpR5+8qfHUEQ6YdYOhWTRliAgktNQlqg6M4kTmT4eqZaLHLiTwgqmL4EY88zleyF/AApwNEQ==
dependencies: dependencies:
"@formkit/auto-animate" "^1.0.0-beta.1" "@formkit/auto-animate" "^1.0.0-beta.1"
classnames "^2.2.6" classnames "^2.2.6"