"Private chat" header for direct chats

Also, auto-create account and room when joining a DM chat link.
This commit is contained in:
N-Pex 2023-08-30 10:50:45 +02:00
parent 46bd105449
commit 68b241b6ce
9 changed files with 437 additions and 37 deletions

View file

@ -86,9 +86,8 @@ body {
font-family: "Inter", sans-serif;
font-weight: 700;
font-size: 11 * $chat-text-size;
color: var(--v-foreground-color);
background-color: var(--v-background-color) !important;
border: 1px solid var(--v-foreground-color);
color: white;
background-color: red !important;
border-radius: $chat-standard-padding / 2;
height: $chat-standard-padding;
margin-top: $chat-standard-padding-xs;
@ -99,6 +98,26 @@ body {
color: var(--v-secondary-color);
}
.leave-button {
font-family: "Inter", sans-serif;
font-weight: 700;
font-size: 11.54 * $chat-text-size;
line-height: 140%;
color: white !important;
background-color: #ff3300 !important;
border-radius: $small-button-height / 2;
min-height: 0;
height: $small-button-height !important;
margin-top: $chat-standard-padding-xs;
margin-bottom: $chat-standard-padding-xs;
padding-left: $chat-standard-padding-s !important;
padding-right: $chat-standard-padding-s !important;
width: auto !important;
.v-icon {
margin-right: 4px;
}
}
.icon-dropdown {
margin: 0px 8px;
}

View file

@ -2,6 +2,6 @@
<svg width="18" height="22" viewBox="0 0 18 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M16.0247 8.80006H15.4908V6.42878C15.4908 2.88379 12.5789 0 9.00064 0C5.42053 0 2.50904 2.88379 2.50904 6.42878V8.80047H1.97615C0.88518 8.80047 0 9.67678 0 10.7572V20.0423C0 21.1231 0.884952 22 1.97615 22H16.0248C17.1153 22 18 21.1232 18 20.0423L17.9999 10.7568C17.9999 9.67638 17.1151 8.80006 16.025 8.80006H16.0247ZM9.82754 15.5262V16.7406C9.82754 16.9215 9.6795 17.0687 9.4959 17.0687H8.50277C8.32063 17.0687 8.17185 16.9216 8.17185 16.7406V15.5262C7.7193 15.2498 7.41503 14.7589 7.41503 14.193C7.41503 13.3265 8.12456 12.6242 9.0001 12.6242C9.87461 12.6242 10.5841 13.3265 10.5841 14.193C10.584 14.7589 10.2795 15.2498 9.82754 15.5262ZM12.6451 8.80006H5.35551V6.42878C5.35551 4.43786 6.99007 2.81942 9.00073 2.81942C11.0097 2.81942 12.6451 4.43763 12.6451 6.42878V8.80006Z"
fill="white" />
fill="currentColor" />
</svg>
</template>

View file

@ -132,7 +132,10 @@
"join_invite": "Only people you invite can join.",
"info_permissions": "You can change join permissions at any time in the room settings.",
"got_it": "Got it",
"no_past_messages": "Welcome! For your security, past messages are not available."
"no_past_messages": "Welcome! For your security, past messages are not available.",
"direct_hi": "Hi!",
"direct_info": "Youve connected to {user}. Leave a message and theyll be notified.",
"direct_private_chat": "Private Chat"
},
"new_room": {
"new_room": "New Room",