Fix button borders in dark theme

master
Outrun Colors 2022-09-24 22:13:42 -05:00
parent 9a04df862b
commit c8b574906b
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
5 changed files with 10 additions and 6 deletions

View File

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

View File

@ -14,6 +14,10 @@
padding-right: 3rem; padding-right: 3rem;
} }
.ChatMessage .btn {
border: none !important;
}
.ChatMessage-top { .ChatMessage-top {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -55,6 +55,9 @@ export function UserInput() {
); );
const handleToggleEmojiDrawer = useCallback(() => { const handleToggleEmojiDrawer = useCallback(() => {
if (open) { if (open) {
builtChatInput.current?.focus();
hide();
} else {
reveal({ reveal({
title: "Select an emoji", title: "Select an emoji",
content: ( content: (
@ -64,9 +67,6 @@ export function UserInput() {
/> />
), ),
}); });
} else {
builtChatInput.current?.focus();
hide();
} }
}, [open]); }, [open]);
const handleSelectEmoji = useCallback((emoji: string) => { const handleSelectEmoji = useCallback((emoji: string) => {

View File

@ -769,7 +769,7 @@
<div class="body w-lg-100"> <div class="body w-lg-100">
<div class="custom-control custom-switch"> <div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="spiderswitch" name="spider" {% if v.spider%}checked{% endif %} {% if v.spider > 1 %}disabled{% endif %} onchange="post_toast(this,'/settings/profile?spider='+document.getElementById('spiderswitch').checked)"> <input autocomplete="off" type="checkbox" class="custom-control-input" id="spiderswitch" name="spider" {% if v.spider%}checked{% endif %} {% if v.spider and v.spider > 1 %}disabled{% endif %} onchange="post_toast(this,'/settings/profile?spider='+document.getElementById('spiderswitch').checked)">
<label class="custom-control-label" for="spiderswitch"></label> <label class="custom-control-label" for="spiderswitch"></label>
</div> </div>