mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
improve setting design
This commit is contained in:
+5
-2
@@ -1,6 +1,5 @@
|
||||
.setting {
|
||||
margin-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin: 10px 10px 0 10px;
|
||||
}
|
||||
|
||||
.blockedAddress {
|
||||
@@ -18,6 +17,10 @@
|
||||
text-decoration: var(--button-text-decoration);
|
||||
}
|
||||
|
||||
.unblockButton {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
color: var(--button-desktop-text-color-hover);
|
||||
cursor: pointer;
|
||||
|
||||
+7
-3
@@ -8,8 +8,12 @@ const UnblockButton = ({ address }: { address: string }) => {
|
||||
const { unblock } = useBlock({ address });
|
||||
|
||||
return (
|
||||
<span className={styles.button} onClick={unblock}>
|
||||
{t('unblock')}
|
||||
<span className={styles.unblockButton}>
|
||||
[
|
||||
<span className={styles.button} onClick={unblock}>
|
||||
{t('unblock')}
|
||||
</span>
|
||||
]
|
||||
</span>
|
||||
);
|
||||
};
|
||||
@@ -40,7 +44,7 @@ const BlockedAddressesSetting = () => {
|
||||
<ul className={styles.blockedAddresses}>
|
||||
{addressList.map((address: string) => (
|
||||
<li key={address} className={styles.blockedAddress}>
|
||||
{address && Plebbit.getShortAddress(address)} [<UnblockButton address={address} />]
|
||||
{address && Plebbit.getShortAddress(address)} <UnblockButton address={address} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
+5
-2
@@ -1,6 +1,5 @@
|
||||
.setting {
|
||||
margin-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin: 10px 10px 0 10px;
|
||||
}
|
||||
|
||||
.subscription {
|
||||
@@ -18,6 +17,10 @@
|
||||
text-decoration: var(--button-text-decoration);
|
||||
}
|
||||
|
||||
.subscriptionButton {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
color: var(--button-desktop-text-color-hover);
|
||||
cursor: pointer;
|
||||
|
||||
@@ -20,8 +20,12 @@ const SubscriptionButton = ({ address }: { address: string }) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<span className={styles.button} onClick={handleClick}>
|
||||
{recentlyUnsubscribed || !subscribed ? t('subscribe') : t('unsubscribe')}
|
||||
<span className={styles.subscriptionButton}>
|
||||
[
|
||||
<span className={styles.button} onClick={handleClick}>
|
||||
{recentlyUnsubscribed || !subscribed ? t('subscribe') : t('unsubscribe')}
|
||||
</span>
|
||||
]
|
||||
</span>
|
||||
);
|
||||
};
|
||||
@@ -53,7 +57,7 @@ const SubscriptionsSetting = () => {
|
||||
<ul className={styles.subscriptions}>
|
||||
{subscriptions?.map((address: string) => (
|
||||
<li key={address} className={styles.subscription}>
|
||||
{address && Plebbit.getShortAddress(address)} [<SubscriptionButton address={address} />]
|
||||
{address && Plebbit.getShortAddress(address)} <SubscriptionButton address={address} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user