Skip to content

Commit e6b2cc3

Browse files
committed
feat(sidebar): add moderators list
1 parent 390680a commit e6b2cc3

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

src/components/sidebar/sidebar.module.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,36 @@ a {
124124

125125
.createSub:hover .nub {
126126
background-image: var(--button-large-hover-nub);
127+
}
128+
129+
.modListTitle {
130+
display: inline;
131+
text-transform: uppercase;
132+
margin: 0;
133+
color: gray;
134+
font-size: 13px;
135+
font-weight: normal;
136+
}
137+
138+
.modListContent {
139+
margin: 0;
140+
padding: 5px;
141+
border: 1px solid gray;
142+
font-size: larger;
143+
list-style: none;
144+
}
145+
146+
.modListContent li {
147+
font-size: 12px;
148+
list-style: none;
149+
text-decoration: none;
150+
color: var(--text-primary);
151+
152+
}
153+
154+
.modListMore {
155+
color: var(--text-info) !important;
156+
text-align: right;
157+
font-size: 10px !important;
158+
cursor: pointer;
127159
}

src/components/sidebar/sidebar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ const Sidebar = ({ address, createdAt, description, roles, shortAddress, title,
3030
const rolesList = roles ? Object.entries(roles).map(([address, { role }]) => ({ address, role })) : [];
3131

3232
const moderatorsList = (
33-
<ul>
33+
<ul className={styles.modListContent}>
3434
{rolesList.map(({ address }, index) => (
35-
<li key={index}>u/{address}</li>
35+
<li key={index}>u/{getShortAddress(address)}</li>
3636
))}
37+
<li className={styles.modListMore}>about moderation team »</li>
3738
</ul>
3839
)
3940

0 commit comments

Comments
 (0)