Skip to content

Commit fbd2da2

Browse files
committed
Menu bar and home page fixes
1 parent acd7d22 commit fbd2da2

File tree

4 files changed

+22
-21
lines changed

4 files changed

+22
-21
lines changed

src/chat/elementjson/chat-styles.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
--selected-emoji-popup-dialog-border-width: 2px;
137137
--selected-emoji-popup-dialog-text-color: hsl(134, 100%, 95%);
138138

139-
--server-notifcation-color: hsl(49deg, 100%, 50%);
139+
--server-notifcation-color: hsl(49, 100%, 80%);
140140

141141
--default-font-weight: 0px;
142142

@@ -799,13 +799,15 @@ a {
799799

800800
.rrchatMenuBar {
801801
display: flex;
802-
position: absolute;
802+
position: fixed;
803803
top: 0;
804804
left: 0;
805-
background: var(--header-color);
806805
width: 100%;
807-
height: 40px;
808-
overflow: hidden;
806+
min-height: 40px;
807+
background: #b8b8b8;
808+
z-index: 10;
809+
overflow: auto;
810+
transition: 0.2s;
809811
}
810812

811813
.userMenuBar {

src/pages/index.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var elementJSON = [
8282
duration: 700,
8383
iterations: 1,
8484
easing: "ease-out",
85-
},
85+
}
8686
);
8787
anim.addEventListener("finish", () => {
8888
elm.animate(
@@ -96,7 +96,7 @@ var elementJSON = [
9696
duration: 600,
9797
iterations: Infinity,
9898
easing: "ease-out",
99-
},
99+
}
100100
);
101101
});
102102
},
@@ -123,7 +123,7 @@ var elementJSON = [
123123
duration: 800,
124124
iterations: 1,
125125
easing: "ease-out",
126-
},
126+
}
127127
);
128128
anim.addEventListener("finish", () => {
129129
elm.animate(
@@ -137,7 +137,7 @@ var elementJSON = [
137137
duration: 800,
138138
iterations: Infinity,
139139
easing: "ease-out",
140-
},
140+
}
141141
);
142142
});
143143
},
@@ -163,7 +163,6 @@ var elementJSON = [
163163
borderRadius: "5px",
164164
boxShadow: "0 0px 30px black",
165165
padding: "15px 15px",
166-
zIndex: "100",
167166

168167
maxWidth: "90vw", // Set a maximum width based on viewport width (e.g., 90% of the viewport)
169168
maxHeight: "90vh",
@@ -205,7 +204,7 @@ var elementJSON = [
205204
{
206205
duration: 900,
207206
easing: "ease-out",
208-
},
207+
}
209208
);
210209
},
211210
},
@@ -278,7 +277,7 @@ var elementJSON = [
278277
if (!accountHelper.getCurrentValidationState()) {
279278
if (
280279
await dialogs.confirm(
281-
"Are you sure you want to enter chat without an Random Rants + account?",
280+
"Are you sure you want to enter chat without an Random Rants + account?"
282281
)
283282
) {
284283
window.location.href = "/chat";
@@ -301,7 +300,7 @@ var elementJSON = [
301300
if (!accountHelper.getCurrentValidationState()) {
302301
if (
303302
await dialogs.confirm(
304-
"Are you sure you want to join someones room without an Random Rants + account?",
303+
"Are you sure you want to join someones room without an Random Rants + account?"
305304
)
306305
) {
307306
window.location.href = "/join";
@@ -460,7 +459,7 @@ var elementJSON = [
460459

461460
elements.appendElements(
462461
elements.body,
463-
elements.createElementsFromJSON(elementJSON),
462+
elements.createElementsFromJSON(elementJSON)
464463
);
465464

466465
var style = document.createElement("style");
@@ -481,7 +480,7 @@ var p1Animation = person1.animate(
481480
duration: 700,
482481
iterations: 1,
483482
easing: "ease-out",
484-
},
483+
}
485484
);
486485
p1Animation.addEventListener("finish", () => {
487486
person1.animate(
@@ -495,7 +494,7 @@ p1Animation.addEventListener("finish", () => {
495494
duration: 700,
496495
iterations: Infinity,
497496
easing: "ease-out",
498-
},
497+
}
499498
);
500499
});
501500

@@ -511,7 +510,7 @@ var p2Animation = person2.animate(
511510
duration: 900,
512511
iterations: 1,
513512
easing: "ease-out",
514-
},
513+
}
515514
);
516515

517516
p2Animation.addEventListener("finish", () => {
@@ -526,7 +525,7 @@ p2Animation.addEventListener("finish", () => {
526525
duration: 800,
527526
iterations: Infinity,
528527
easing: "ease-out",
529-
},
528+
}
530529
);
531530
});
532531

src/pages/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ body {
1515
top: 0;
1616
left: 0;
1717
width: 100%;
18-
height: 40px;
18+
min-height: 40px;
1919
background: #b8b8b8;
2020
z-index: 10;
21-
overflow: hidden;
21+
overflow: auto;
2222
transition: 0.2s;
2323
}
2424

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1762542793640"}
1+
{"timestamp":"1762797073923"}

0 commit comments

Comments
 (0)