fix block label issue?
This commit is contained in:
parent
370ba3e521
commit
bfe3ed7cee
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "2.8.3",
|
"version": "2.8.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",
|
||||||
|
|
|
@ -38,7 +38,7 @@ export default Block;
|
||||||
function NUBlock({ opts }: {
|
function NUBlock({ opts }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
}) {
|
}) {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
style={{
|
style={{
|
||||||
|
@ -58,7 +58,7 @@ function EquativeBlock({ opts, eq }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
eq: T.EquativeRendered,
|
eq: T.EquativeRendered,
|
||||||
}) {
|
}) {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
style={{
|
style={{
|
||||||
|
@ -93,7 +93,7 @@ function EqCompBlock({ opts, comp }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
adj: T.Rendered<T.AdjectiveSelection>,
|
adj: T.Rendered<T.AdjectiveSelection>,
|
||||||
}) {
|
}) {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
style={{
|
style={{
|
||||||
|
@ -113,7 +113,7 @@ function EqCompBlock({ opts, comp }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
adv: T.Rendered<T.LocativeAdverbSelection>,
|
adv: T.Rendered<T.LocativeAdverbSelection>,
|
||||||
}) {
|
}) {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
style={{
|
style={{
|
||||||
|
@ -150,7 +150,7 @@ export function APBlock({ opts, children, english }: {
|
||||||
}) {
|
}) {
|
||||||
const ap = children;
|
const ap = children;
|
||||||
if (ap.selection.type === "adverb") {
|
if (ap.selection.type === "adverb") {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
style={{
|
style={{
|
||||||
|
@ -181,7 +181,7 @@ function Sandwich({ opts, sandwich }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
sandwich: T.Rendered<T.SandwichSelection<T.Sandwich>>,
|
sandwich: T.Rendered<T.SandwichSelection<T.Sandwich>>,
|
||||||
}) {
|
}) {
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div className="text-center">Sandwich 🥪</div>
|
<div className="text-center">Sandwich 🥪</div>
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
className={classNames("d-flex flex-row justify-content-center align-items-center")}
|
||||||
|
@ -211,7 +211,7 @@ export function NPBlock({ opts, children, inside, english }: {
|
||||||
}) {
|
}) {
|
||||||
const np = children;
|
const np = children;
|
||||||
const hasPossesor = !!(np.selection.type !== "pronoun" && np.selection.possesor && !np.selection.possesor.shrunken);
|
const hasPossesor = !!(np.selection.type !== "pronoun" && np.selection.possesor && !np.selection.possesor.shrunken);
|
||||||
return <div>
|
return <div className="text-center">
|
||||||
<div
|
<div
|
||||||
className={classNames("d-flex flex-row justify-content-center align-items-center", { "pt-2": !inside && hasPossesor })}
|
className={classNames("d-flex flex-row justify-content-center align-items-center", { "pt-2": !inside && hasPossesor })}
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Reference in New Issue