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",
"version": "0.1.14",
"version": "0.1.15",
"main": "./src/index.tsx",
"license": "MIT",
"dependencies": {

View File

@ -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;
}

View File

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

View File

@ -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

View File

@ -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>