forked from rDrama/rDrama
1
0
Fork 0

Re-add expanded image and emojimodal

master
Outrun Colors 2022-09-26 20:28:39 -05:00
parent 12b6a4ffa7
commit 2e9c774a5d
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
5 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "chat", "name": "chat",
"version": "0.1.14", "version": "0.1.15",
"main": "./src/index.tsx", "main": "./src/index.tsx",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -1,5 +1,6 @@
html, html,
body { body {
overscroll-behavior-y: none;
} }
html { html {
@ -9,7 +10,7 @@ html {
body { body {
min-height: 100vh; min-height: 100vh;
min-height: calc(var(--vh, 1vh) * 100); min-height: calc(var(--vh, 1vh) * 100);
/* overflow: hidden; */ overflow: hidden;
/* mobile viewport bug fix */ /* mobile viewport bug fix */
min-height: -webkit-fill-available; min-height: -webkit-fill-available;
} }

View File

@ -206,7 +206,6 @@ export function ChatMessageList() {
for (const image of images) { for (const image of images) {
image.src = image.dataset.src; image.src = image.dataset.src;
image.dataset.src = undefined;
} }
}, [messages]); }, [messages]);

View File

@ -128,7 +128,14 @@ export function UserInput() {
/> />
<i <i
role="button" role="button"
onClick={handleToggleEmojiDrawer} data-bs-toggle="modal"
data-bs-target="#emojiModal"
data-bs-placement="bottom"
title="Add Emoji"
onClick={() => {
const whatever = window as any;
whatever.loadEmojis("builtChatInput");
}}
className="UserInput-emoji fas fa-smile-beam" className="UserInput-emoji fas fa-smile-beam"
/> />
<button <button

View File

@ -25,6 +25,9 @@
<body> <body>
{% include "header.html" %} {% include "header.html" %}
{% include "expanded_image_modal.html" %}
{% include "emoji_modal.html" %}
<div <div
id="root" id="root"
data-id="{{v.id}}" data-id="{{v.id}}"
@ -35,7 +38,7 @@
data-themecolor="{{v.themecolor}}"> data-themecolor="{{v.themecolor}}">
</div> </div>
<script>window.global = window</script> <script>window.global = window</script>
<script defer src="{{'js/lite-youtube.js' | asset}}"></script>
<script defer src="{{'js/chat_done.js' | asset}}"></script> <script defer src="{{'js/chat_done.js' | asset}}"></script>
<script defer src="{{'js/lozad.js' | asset}}"></script>
</body> </body>