Skip to content

Commit

Permalink
Increased width of room color stripes (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krysset authored Nov 8, 2023
1 parent f684c05 commit 7f1ff35
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/use-cases/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ const style = document.querySelector("#room-styles");

const getClassName = rooms => {
let name = "event";
if (rooms.length === 1) {
name += "-" + rooms[0].toLowerCase() + "Alone";
} else {
for (const i in rooms) {
name += "-" + rooms[i].toLowerCase();
}
}
name += rooms.length();
if (!style.innerHTML.includes(name)) {
style.innerHTML += `.${name}{background: repeating-linear-gradient(45deg,`;
let px = 0;
for (const i in rooms) {
style.innerHTML += `var(--bg_${rooms[i].toLowerCase()}) ${px}px ,`;
px += 10;
px += 25;
style.innerHTML += `var(--bg_${rooms[i].toLowerCase()}) ${px}px ,`;
}
style.innerHTML = `${style.innerHTML.slice(
Expand Down

0 comments on commit 7f1ff35

Please sign in to comment.