forked from rDrama/rDrama
Re-add expanded image and emojimodal
parent
12b6a4ffa7
commit
2e9c774a5d
|
@ -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": {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue