Experimental "read only" room support

This commit is contained in:
N-Pex 2023-03-16 15:23:26 +01:00 committed by n8fr8
parent f34721c930
commit 76ca3f8e70
8 changed files with 169 additions and 17 deletions

View file

@ -40,5 +40,6 @@
}
}
],
"experimental_voice_mode": true
"experimental_voice_mode": true,
"experimental_read_only_room": true
}

View file

@ -295,6 +295,19 @@ body {
}
}
.input-area-read-only {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(white, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 40;
}
@media #{map-get($display-breakpoints, 'sm-and-down')} {
position: fixed;
bottom: 0px;
@ -1466,6 +1479,21 @@ body {
.mic-button {
z-index: 0;
}
.mic-button.dimmed {
opacity: 0.5;
}
.toast-read-only {
position: fixed;
left: 10px;
right: 10px;
bottom: 10px;
background-color: rgba(black, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 40;
color: white;
}
}
.audio-layout.voice-recorder {

View file

@ -82,7 +82,8 @@
"reply_poll": "Poll",
"time_ago": "Today | Yesterday | {count} days ago",
"outgoing_message_deleted_text": "You deleted this message.",
"incoming_message_deleted_text": "This message was deleted."
"incoming_message_deleted_text": "This message was deleted.",
"not_allowed_to_send": "Only admins and moderators are allowed to send to the room"
},
"room": {
"invitations": "You have no invitations | You have 1 invitation | You have {count} invitations",
@ -249,7 +250,9 @@
"experimental_features": "Experimental Features",
"voice_mode": "Voice mode",
"voice_mode_info": "Switches the chat interface to a 'listen and record' mode",
"download_chat": "Download chat"
"download_chat": "Download chat",
"read_only_room": "Read only room",
"read_only_room_info": "Only admins and moderators are allowed to send to the room"
},
"room_info_sheet": {
"this_room": "This room",