mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
Move attachment upload button next to the input
This commit is contained in:
parent
db515f1f1b
commit
65fdea953e
@ -378,6 +378,16 @@ #tpl_chat_log {
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
|
||||
> div.chatAttachButton {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
> div.chatInputWrapper {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
> .flexibleTextarea {
|
||||
@ -389,6 +399,7 @@ #tpl_chat_log {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.innerError {
|
||||
float: left;
|
||||
|
@ -4,9 +4,6 @@
|
||||
<li><a class="button" href="#" data-module="Bastelstu.be/Chat/Ui/Settings/FullscreenButton"><span class="icon icon16 fa-arrows-alt"></span> <span>{lang}chat.room.button.fullscreen{/lang}</span></a></li>
|
||||
<li><a class="button" href="#" data-module="Bastelstu.be/Chat/Ui/Settings/NotificationsButton"><span class="icon icon16 fa-bell-o"></span> <span>{lang}chat.room.button.notifications{/lang}</span></a></li>
|
||||
<li><a class="button" href="#" data-module="Bastelstu.be/Chat/Ui/Settings/AutoscrollButton"><span class="icon icon16 fa-arrow-down"></span> <span>{lang}chat.room.button.autoscroll{/lang}</span></a></li>
|
||||
{if $__wcf->getSession()->getPermission('user.chat.canAttach')}
|
||||
<li><a id="chatAttachmentUploadButton" class="button" href="#"><span class="icon icon16 fa-paperclip"></span> <span>{lang}wcf.attachment.attachments{/lang}</span></a>
|
||||
{/if}
|
||||
{event name='buttons'}
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -54,11 +54,20 @@
|
||||
|
||||
<div id="chatInputContainer">
|
||||
<div>
|
||||
{if $__wcf->getSession()->getPermission('user.chat.canAttach')}
|
||||
<div class="chatAttachButton">
|
||||
<span id="chatAttachmentUploadButton" class="button small" title="{lang}wcf.attachment.attachments{/lang}">
|
||||
<span class="icon icon16 fa-paperclip"></span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="chatInputWrapper">
|
||||
<textarea maxlength="{CHAT_MAX_LENGTH}" class="long"></textarea>
|
||||
<span id="chatQuickSettings">
|
||||
<span class="icon icon24 fa-ellipsis-v"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="innerError" style="display: none"></small>
|
||||
<span class="charCounter dimmed"></span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user