fix for new boards

This commit is contained in:
plebeius.eth
2023-06-30 16:22:09 +02:00
parent c3c1d6005e
commit 2aa50b5f87
2 changed files with 11 additions and 13 deletions
+6 -6
View File
@@ -2153,7 +2153,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
@@ -2327,7 +2327,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
@@ -2500,7 +2500,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
@@ -2671,7 +2671,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
@@ -2839,7 +2839,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
@@ -3017,7 +3017,7 @@ export const BoardForm = styled.div`
} }
.op-container { .op-container {
display: inline; display: grid;
} }
.op { .op {
+5 -7
View File
@@ -66,7 +66,7 @@ const Board = () => {
selectedStyle, selectedStyle,
setSelectedThread, setSelectedThread,
setSelectedText, setSelectedText,
selectedTitle, setSelectedTitle, setSelectedTitle,
showPostForm, showPostForm,
showPostFormLink, showPostFormLink,
setTriggerInsertion, setTriggerInsertion,
@@ -623,7 +623,7 @@ const Board = () => {
return ( return (
<> <>
<Helmet> <Helmet>
<title>{((selectedTitle ? selectedTitle : selectedAddress) + " - plebchan")}</title> <title>{((subplebbit.title ? subplebbit.title : subplebbit.address) + " - plebchan")}</title>
</Helmet> </Helmet>
<Container> <Container>
<AdminListModal <AdminListModal
@@ -831,7 +831,7 @@ const Board = () => {
{subplebbit?.state === "failed" ? ( {subplebbit?.state === "failed" ? (
null null
) : ( ) : (
feed.length > 0 ? ( subplebbit?.state === "succeeded" ? (
<> <>
{subplebbit.rules ? {subplebbit.rules ?
<> <>
@@ -962,9 +962,7 @@ const Board = () => {
{subplebbit.description ? {subplebbit.description ?
<> <>
<div className="thread"> <div className="thread">
<div className="op-container" style={{ <div className="op-container">
display: subplebbit.rules ? "grid" : "block"
}}>
<div className="post op op-desktop"> <div className="post op op-desktop">
<hr /> <hr />
<div className="post-info"> <div className="post-info">
@@ -2549,7 +2547,7 @@ const Board = () => {
}} }}
endReached={tryLoadMore} endReached={tryLoadMore}
useWindowScroll={true} useWindowScroll={true}
components={{ Footer: hasMore ? () => <PostLoader /> : null }} components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
/> />
</> </>
) : (<PostLoader />) ) : (<PostLoader />)