tangled
alpha
login
or
join now
bad-example.com
/
spacedust-utils
6
fork
atom
demos for spacedust
6
fork
atom
overview
issues
pulls
pipelines
a lil role tag
bad-example.com
8 months ago
29260c32
aabd6419
+19
2 changed files
expand all
collapse all
unified
split
atproto-notifications
src
components
setup
Chrome.css
Chrome.tsx
+13
atproto-notifications/src/components/setup/Chrome.css
···
1
1
+
.chrome-role-tag {
2
2
+
font-size: 0.6rem;
3
3
+
/*background: #555;*/
4
4
+
color: #8c0;
5
5
+
border: 0.5px solid #690;
6
6
+
display: inline-block;
7
7
+
border-radius: 0.5em;
8
8
+
padding: 0.1em 0.2em 0.15em;
9
9
+
line-height: 1;
10
10
+
vertical-align: top;
11
11
+
margin-left: -0.333rem;
12
12
+
transform: rotate(13deg);
13
13
+
}
+6
atproto-notifications/src/components/setup/Chrome.tsx
···
1
1
import { Handle } from '../User';
2
2
+
import './Chrome.css';
2
3
3
4
export function Chrome({ user, onLogout, children }) {
4
5
const content = children;
···
12
13
<p>
13
14
<span className="handle">
14
15
<Handle did={user.did} />
16
16
+
{user.role !== 'public' && (
17
17
+
<span className="chrome-role-tag">
18
18
+
{user.role}
19
19
+
</span>
20
20
+
)}
15
21
</span>
16
22
<button className="subtle bad" onClick={onLogout}>×</button>
17
23
</p>