changes
This commit is contained in:
parent
2428f69df8
commit
feab14a5be
@ -290,6 +290,7 @@ button.scroll {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: var(--input-button-inactive-bg);
|
background-color: var(--input-button-inactive-bg);
|
||||||
|
fill: var(--input-button-inactive-fg);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@ -302,10 +303,12 @@ button.scroll:hover {
|
|||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
fill: var(--var-input-button-inactive-fg);
|
fill: var(--var-input-button-inactive-fg);
|
||||||
|
color: var(--var-input-button-inactive-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-icon:hover {
|
.scroll-icon:hover {
|
||||||
fill: var(--var-input-button-active-fg);
|
fill: var(--var-input-button-active-fg);
|
||||||
|
color: var(--var-input-button-active-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.radchat {
|
.radchat {
|
||||||
|
@ -290,6 +290,7 @@ async function setUsername() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let lastMessage = "";
|
||||||
async function sendMessage() {
|
async function sendMessage() {
|
||||||
const messageInput = document.getElementById("message");
|
const messageInput = document.getElementById("message");
|
||||||
const message = messageInput.value;
|
const message = messageInput.value;
|
||||||
@ -298,6 +299,7 @@ async function sendMessage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
lastMessage = message;
|
||||||
const response = await fetch("/messages", {
|
const response = await fetch("/messages", {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
headers: {
|
headers: {
|
||||||
@ -393,6 +395,13 @@ function initializeTheme() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener("keyup", function (event) {
|
||||||
|
const inputPanel = document.getElementById("message");
|
||||||
|
if (inputPanel.contains(event.target) && event.key === "ArrowUp") {
|
||||||
|
inputPanel.value = lastMessage;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
async function initialize() {
|
async function initialize() {
|
||||||
usersPanel = document.getElementById("users-panel");
|
usersPanel = document.getElementById("users-panel");
|
||||||
if (usersPanel) {
|
if (usersPanel) {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# Changes To Make
|
# Changes To Make
|
||||||
## Frontend
|
## Frontend
|
||||||
### High Priority
|
### High Priority
|
||||||
- Change light mode scroll down arrow svg fill color? to the buttom inactive fg color
|
- Nothing yet
|
||||||
### Mid Priority
|
### Mid Priority
|
||||||
- Up arrow in textarea should bring up last input
|
- Nothing yet
|
||||||
### Low Priority
|
### Low Priority
|
||||||
- Mobile formatting @media
|
- Mobile formatting @media
|
||||||
- First click of user list does not register
|
- First click of user list does not register
|
||||||
|
Loading…
x
Reference in New Issue
Block a user