mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style: update mobile UI spacing, colors
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
.mobileBoardButtons {
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.addMargin {
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.mobileBoardButtons button {
|
||||
margin: 0 2px;
|
||||
text-transform: capitalize;
|
||||
margin: 5px 2px;
|
||||
}
|
||||
|
||||
.mobileBoardButtons a, .desktopBoardButtons a {
|
||||
|
||||
@@ -185,7 +185,7 @@ export const MobileBoardButtons = () => {
|
||||
const subplebbitAddress = params?.subplebbitAddress || accountComment?.subplebbitAddress;
|
||||
|
||||
return (
|
||||
<div className={styles.mobileBoardButtons}>
|
||||
<div className={`${styles.mobileBoardButtons} ${!isInCatalogView ? styles.addMargin : ''}`}>
|
||||
<div className={styles.adButton}>
|
||||
[
|
||||
<Link
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.bannerCnt {
|
||||
padding-top: 35px;
|
||||
.boardTitle {
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import { getFormattedTimeAgo } from '../../lib/utils/time-utils';
|
||||
import { isAllView, isSubscriptionsView } from '../../lib/utils/view-utils';
|
||||
import styles from './board-header.module.css';
|
||||
import { useMultisubMetadata } from '../../hooks/use-default-subplebbits';
|
||||
import useIsMobile from '../../hooks/use-is-mobile';
|
||||
|
||||
const totalBanners = 59;
|
||||
|
||||
@@ -45,9 +46,11 @@ const BoardHeader = () => {
|
||||
|
||||
return (
|
||||
<div className={styles.content}>
|
||||
<div className={styles.bannerCnt}>
|
||||
<ImageBanner key={isInAllView ? 'all' : isInSubscriptionsView ? 'subscriptions' : address} />
|
||||
</div>
|
||||
{!useIsMobile() && (
|
||||
<div className={styles.bannerCnt}>
|
||||
<ImageBanner key={isInAllView ? 'all' : isInSubscriptionsView ? 'subscriptions' : address} />
|
||||
</div>
|
||||
)}
|
||||
<div className={styles.boardTitle}>
|
||||
{title || `p/${shortAddress || subplebbitAddress}`}
|
||||
{isBoardOffline && <span className={styles.offlineIcon} title={offlineMessage} />}
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
background-color: var(--topbar-mobile-background-color);
|
||||
border-bottom: var(--topbar-mobile-border-bottom);
|
||||
font-size: var(--topbar-mobile-font-size);
|
||||
color: var(--topbar-mobile-button-text-color);
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
@@ -72,6 +73,7 @@
|
||||
|
||||
.boardSelect {
|
||||
float: left;
|
||||
color: var(--homepage-box-link-text-color);
|
||||
}
|
||||
|
||||
.pageJump {
|
||||
@@ -81,8 +83,8 @@
|
||||
|
||||
.pageJump a, .pageJump span {
|
||||
padding-right: 5px;
|
||||
color: var(--homepage-box-link-text-color);
|
||||
text-decoration: var(--homepage-box-link-text-decoration);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
Reference in New Issue
Block a user