forked from MarseyWorld/MarseyWorld
Re-add expanded image and emojimodal
parent
12b6a4ffa7
commit
2e9c774a5d
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "chat",
|
||||
"version": "0.1.14",
|
||||
"version": "0.1.15",
|
||||
"main": "./src/index.tsx",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
html,
|
||||
body {
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
|
||||
html {
|
||||
|
@ -9,7 +10,7 @@ html {
|
|||
body {
|
||||
min-height: 100vh;
|
||||
min-height: calc(var(--vh, 1vh) * 100);
|
||||
/* overflow: hidden; */
|
||||
overflow: hidden;
|
||||
/* mobile viewport bug fix */
|
||||
min-height: -webkit-fill-available;
|
||||
}
|
||||
|
|
|
@ -206,7 +206,6 @@ export function ChatMessageList() {
|
|||
|
||||
for (const image of images) {
|
||||
image.src = image.dataset.src;
|
||||
image.dataset.src = undefined;
|
||||
}
|
||||
}, [messages]);
|
||||
|
||||
|
|
|
@ -128,7 +128,14 @@ export function UserInput() {
|
|||
/>
|
||||
<i
|
||||
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"
|
||||
/>
|
||||
<button
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
|
||||
<body>
|
||||
{% include "header.html" %}
|
||||
{% include "expanded_image_modal.html" %}
|
||||
{% include "emoji_modal.html" %}
|
||||
|
||||
<div
|
||||
id="root"
|
||||
data-id="{{v.id}}"
|
||||
|
@ -35,7 +38,7 @@
|
|||
data-themecolor="{{v.themecolor}}">
|
||||
</div>
|
||||
<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/lozad.js' | asset}}"></script>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in New Issue