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 {
display: inline;
display: grid;
}
.op {
@@ -2327,7 +2327,7 @@ export const BoardForm = styled.div`
}
.op-container {
display: inline;
display: grid;
}
.op {
@@ -2500,7 +2500,7 @@ export const BoardForm = styled.div`
}
.op-container {
display: inline;
display: grid;
}
.op {
@@ -2671,7 +2671,7 @@ export const BoardForm = styled.div`
}
.op-container {
display: inline;
display: grid;
}
.op {
@@ -2839,7 +2839,7 @@ export const BoardForm = styled.div`
}
.op-container {
display: inline;
display: grid;
}
.op {
@@ -3017,7 +3017,7 @@ export const BoardForm = styled.div`
}
.op-container {
display: inline;
display: grid;
}
.op {
+5 -7
View File
@@ -66,7 +66,7 @@ const Board = () => {
selectedStyle,
setSelectedThread,
setSelectedText,
selectedTitle, setSelectedTitle,
setSelectedTitle,
showPostForm,
showPostFormLink,
setTriggerInsertion,
@@ -623,7 +623,7 @@ const Board = () => {
return (
<>
<Helmet>
<title>{((selectedTitle ? selectedTitle : selectedAddress) + " - plebchan")}</title>
<title>{((subplebbit.title ? subplebbit.title : subplebbit.address) + " - plebchan")}</title>
</Helmet>
<Container>
<AdminListModal
@@ -831,7 +831,7 @@ const Board = () => {
{subplebbit?.state === "failed" ? (
null
) : (
feed.length > 0 ? (
subplebbit?.state === "succeeded" ? (
<>
{subplebbit.rules ?
<>
@@ -962,9 +962,7 @@ const Board = () => {
{subplebbit.description ?
<>
<div className="thread">
<div className="op-container" style={{
display: subplebbit.rules ? "grid" : "block"
}}>
<div className="op-container">
<div className="post op op-desktop">
<hr />
<div className="post-info">
@@ -2549,7 +2547,7 @@ const Board = () => {
}}
endReached={tryLoadMore}
useWindowScroll={true}
components={{ Footer: hasMore ? () => <PostLoader /> : null }}
components={{ Footer: hasMore && feed.length > 0 ? () => <PostLoader /> : null }}
/>
</>
) : (<PostLoader />)