update themes, limit post content length, fix undefined

This commit is contained in:
plebeius.eth
2024-03-28 17:21:27 +01:00
parent 2add4fe2bd
commit 4abd08df7b
7 changed files with 117 additions and 20 deletions
@@ -28,6 +28,16 @@
font-size: var(--boardnav-mobile-font-size);
}
.boardNavMobile .pageJump a {
color: var(--button-text-color-mobile);
text-decoration: var(--button-text-decoration-mobile);
}
.boardNavMobile .pageJump a:hover {
color: var(--button-text-color-hover-mobile);
text-decoration: var(--button-text-decoration-hover-mobile);
}
.boardNavMobile strong {
text-transform: capitalize;
padding-right: 5px;
+1 -1
View File
@@ -43,7 +43,7 @@ const BoardNavMobile = ({ subplebbits, currentSubplebbit }: BoardNavProps) => {
const navigate = useNavigate();
const displaySubplebbitAddress = currentSubplebbit && currentSubplebbit.length > 30 ? currentSubplebbit.slice(0, 30).concat('...') : currentSubplebbit;
const currentSubplebbitIsInList = subplebbits.some((subplebbit: any) => subplebbit.address === currentSubplebbit);
const currentSubplebbitIsInList = subplebbits.some((subplebbit: any) => subplebbit?.address === currentSubplebbit);
const boardSelect = (
<select value={currentSubplebbit || 'all'} onChange={(e) => navigate(`/p/${e.target.value}`)}>