mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(post): clicking "+" button next to "omitted replies" message shows all replies
This commit is contained in:
@@ -54,29 +54,10 @@
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.adButton {
|
||||
text-align: center;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.adButton a {
|
||||
text-decoration: none;
|
||||
color: var(--button-desktop-text-color);
|
||||
|
||||
}
|
||||
.adButton a:hover {
|
||||
cursor: pointer;
|
||||
color: var(--button-desktop-text-color-hover);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.desktopBoardButtons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.adButton {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
|
||||
@@ -172,24 +172,6 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
|
||||
);
|
||||
};
|
||||
|
||||
const AdButton = () => {
|
||||
return (
|
||||
<div className={styles.adButton}>
|
||||
[
|
||||
<Link
|
||||
to='/boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('work in progress');
|
||||
}}
|
||||
>
|
||||
Plebbit Leaderboard
|
||||
</Link>
|
||||
]
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const MobileBoardButtons = () => {
|
||||
const params = useParams();
|
||||
const location = useLocation();
|
||||
@@ -204,8 +186,6 @@ export const MobileBoardButtons = () => {
|
||||
|
||||
return (
|
||||
<div className={`${styles.mobileBoardButtons} ${!isInCatalogView ? styles.addMargin : ''}`}>
|
||||
<AdButton />
|
||||
<hr />
|
||||
{isInPostView || isInPendingPostPage ? (
|
||||
<>
|
||||
<ReturnButton address={subplebbitAddress} isInAllView={isInAllView} isInSubscriptionsView={isInSubscriptionsView} />
|
||||
@@ -253,8 +233,6 @@ export const DesktopBoardButtons = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<hr />
|
||||
<AdButton />
|
||||
<hr />
|
||||
<div className={styles.desktopBoardButtons}>
|
||||
{isInPostView || isInPendingPostPage ? (
|
||||
|
||||
@@ -90,6 +90,16 @@ const TopBarDesktop = () => {
|
||||
>
|
||||
Create
|
||||
</Link>
|
||||
] [
|
||||
<Link
|
||||
to='boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('work in progress');
|
||||
}}
|
||||
>
|
||||
Vote
|
||||
</Link>
|
||||
]
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user