[refactor] update channel name style

This commit is contained in:
Janis Meister
2023-06-30 13:25:44 +02:00
parent 113fcb28de
commit 0d3317802c
2 changed files with 18 additions and 5 deletions

View File

@@ -16,7 +16,11 @@ export default function Viewer({
}) { }) {
return ( return (
<div className="viewer"> <div className="viewer">
{showChannelName ? <h3>{channel?.properties.name}</h3> : null} {showChannelName ? (
<div className="channelNameContainer">
<h3>{channel?.properties.name}</h3>
</div>
) : null}
{clients?.map((client, i) => { {clients?.map((client, i) => {
//* Client limit //* Client limit
if (clientLimit != 0 && i >= clientLimit) { if (clientLimit != 0 && i >= clientLimit) {

View File

@@ -4,10 +4,19 @@
gap: 0 0; gap: 0 0;
padding: 1rem; padding: 1rem;
h3 { .channelNameContainer {
font-size: 1.5rem; display: flex;
font-weight: 500; align-items: center;
margin: 0; margin-bottom: 20px;
h3 {
font-size: 1.7rem;
font-weight: 500;
margin: 0;
background-color: rgba(47, 49, 54, 0.5);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
color: white;
}
} }
.client { .client {