add ui:alwaysUseMobileChatBar
option
This commit is contained in:
parent
8c75b96696
commit
4080e69b11
2 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import { ArrowUpIcon } from "svelte-feather-icons";
|
||||
import request from "../request";
|
||||
import { apiRoute } from "../storage";
|
||||
import { apiRoute, getItem } from "../storage";
|
||||
import { messagesStoreProvider, overlayStore, smallViewport, typingStore, userInfoStore } from "../stores";
|
||||
|
||||
export let channel;
|
||||
|
@ -173,9 +173,9 @@
|
|||
on:input={ onInput }
|
||||
bind:value={ messageInput }
|
||||
bind:this={ messageTextarea }
|
||||
class:small={ $smallViewport }
|
||||
class:small={ $smallViewport || getItem("ui:alwaysUseMobileChatBar") }
|
||||
/>
|
||||
{#if $smallViewport}
|
||||
{#if $smallViewport || getItem("ui:alwaysUseMobileChatBar")}
|
||||
<button class="icon-button send-button" on:click="{ sendMessage }">
|
||||
<ArrowUpIcon />
|
||||
</button>
|
||||
|
|
|
@ -9,6 +9,7 @@ const defaults = {
|
|||
"log:Store": false,
|
||||
"ui:stateful:presistSelectedChannel": true,
|
||||
"ui:showSidebarToggle": false,
|
||||
"ui:alwaysUseMobileChatBar": false,
|
||||
"ui:online:processRemoteTypingEvents": true,
|
||||
"ui:online:processRemotePresenceEvents": true,
|
||||
"ui:online:loadMessageHistory": true,
|
||||
|
|
Loading…
Reference in a new issue