feat(post): clicking "+" button next to "omitted replies" message shows all replies

This commit is contained in:
Tom (plebeius.eth)
2024-07-01 10:33:11 +02:00
parent d78ce84db4
commit 713739b02f
3 changed files with 10 additions and 41 deletions
@@ -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 ? (
+10
View File
@@ -90,6 +90,16 @@ const TopBarDesktop = () => {
>
Create
</Link>
] [
<Link
to='boards'
onClick={(e) => {
e.preventDefault();
alert('work in progress');
}}
>
Vote
</Link>
]
</>
)}