Change send message icon & slightly tweak border radius
This commit is contained in:
parent
c5004dd52b
commit
bba80a19df
3 changed files with 8 additions and 6 deletions
|
|
@ -1777,8 +1777,8 @@ async function openDm(dmId, username, targetId) {
|
||||||
currentDmId = dmId;
|
currentDmId = dmId;
|
||||||
|
|
||||||
let pfp = await getAvatarUrl(targetId, username);
|
let pfp = await getAvatarUrl(targetId, username);
|
||||||
let iconHtml = `<img src="${pfp}" style="width: 1.8rem; height: 1.8rem; border-radius: 0.4rem; margin-right: 0.5rem; object-fit: cover; border: var(--border-width) solid rgba(255, 255, 255, 0.2);">`;
|
let iconHtml = `<img src="${pfp}" style="width: 2.3rem; border-radius: 0.65rem; margin-right: 0.38rem; object-fit: cover; border: var(--border-width) solid rgba(255, 255, 255, 0.2);">`;
|
||||||
await switchRoomContent(username.split(':')[0], chatScreen, false, iconHtml);
|
await switchRoomContent(username.split(':')[0], chatScreen, true, iconHtml);
|
||||||
|
|
||||||
let msgContainer = document.getElementById("chat-messages");
|
let msgContainer = document.getElementById("chat-messages");
|
||||||
if (msgContainer) {
|
if (msgContainer) {
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,10 @@ var chatScreen = `
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 1rem; border-top: var(--border-width) solid var(--light-border-color); display: flex; gap: 0.5rem;">
|
<div style="padding: 1rem; border-top: var(--border-width) solid var(--light-border-color); display: flex; gap: 0.5rem;">
|
||||||
<input type="text" id="chat-input" class="forminput" style="flex-grow: 1; margin: 0;" placeholder="{blah(placeholder.message.input)}">
|
<input type="text" id="chat-input" class="forminput" style="flex-grow: 1; margin: 0;" placeholder="{blah(placeholder.message.input)}">
|
||||||
<button class="submit-button" onclick="sendMessage()" style="margin: 0; padding: 0 1.5rem;">
|
<button class="submit-button" onclick="sendMessage()" style="margin: 0; padding: 0; aspect-ratio: 1;">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--main-bg-color)" width="1.5rem"><path d="M120-160v-240l320-80-320-80v-240l760 320-760 320Z"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.9 -0.5 15.6 16" fill="none" width="1.5rem">
|
||||||
|
<path stroke="var(--main-bg-color)" stroke-linecap="round" stroke-linejoin="round" d="m3.75 7.5 -1.875 5.625 11.25 -5.625L1.875 1.875l1.875 5.625zm0 0h3.75" stroke-width="1.1"></path>
|
||||||
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ indicator.active {
|
||||||
width: calc(var(--icon-button-height) - (var(--border-width) * 2));
|
width: calc(var(--icon-button-height) - (var(--border-width) * 2));
|
||||||
height: calc(var(--icon-button-height) - (var(--border-width) * 2));
|
height: calc(var(--icon-button-height) - (var(--border-width) * 2));
|
||||||
pointer-events: none !important;
|
pointer-events: none !important;
|
||||||
border-radius: 0.6rem;
|
border-radius: 0.65rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
roomcontent {
|
roomcontent {
|
||||||
|
|
@ -605,7 +605,7 @@ space{
|
||||||
.room-pfp {
|
.room-pfp {
|
||||||
width: 2.2rem;
|
width: 2.2rem;
|
||||||
height: 2.2rem;
|
height: 2.2rem;
|
||||||
border-radius: 0.6rem;
|
border-radius: 0.65rem;
|
||||||
border: var(--border-width) solid rgba(255, 255, 255, 0.2);
|
border: var(--border-width) solid rgba(255, 255, 255, 0.2);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue