mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix for new boards
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 />)
|
||||||
|
|||||||
Reference in New Issue
Block a user