mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 21:02:10 +01:00
[feature] add proper styles
This commit is contained in:
@@ -50,7 +50,6 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Viewer
|
<Viewer
|
||||||
showChannelName={true}
|
|
||||||
clients={
|
clients={
|
||||||
clients.map((client) => {
|
clients.map((client) => {
|
||||||
if (client.channel?.id === currentChannel?.id) {
|
if (client.channel?.id === currentChannel?.id) {
|
||||||
|
|||||||
@@ -2,23 +2,38 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0 0;
|
gap: 0 0;
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.3rem;
|
font-size: 1.5rem;
|
||||||
margin-bottom: 10px;
|
font-weight: 500;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client {
|
.client {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 30px;
|
flex-direction: row;
|
||||||
|
gap: 0 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0 10px;
|
margin: 0.5rem 0;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: 23px;
|
width: 2.8rem;
|
||||||
height: 23px;
|
height: 2.8rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
font-size: 1rem;
|
margin: 0;
|
||||||
|
color: white;
|
||||||
|
background-color: rgba(47, 49, 54, 0.5);
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
|
||||||
|
// ellipsis after 22 characters
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 20ch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
* {
|
* {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: 3rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user