1
0
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:
Maximilian Mader 2020-11-01 15:50:41 +01:00 committed by Tim Düsterhus
parent db515f1f1b
commit 65fdea953e
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
3 changed files with 30 additions and 13 deletions

View File

@ -378,6 +378,16 @@ #tpl_chat_log {
> div { > div {
display: flex; display: flex;
> div.chatAttachButton {
flex-grow: 0;
flex-shrink: 0;
margin-right: 5px;
}
> div.chatInputWrapper {
flex-grow: 1;
display: flex;
align-items: center; align-items: center;
> .flexibleTextarea { > .flexibleTextarea {
@ -389,6 +399,7 @@ #tpl_chat_log {
flex: 0 0 auto; flex: 0 0 auto;
} }
} }
}
.innerError { .innerError {
float: left; float: left;

View File

@ -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/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/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> <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'} {event name='buttons'}
</ul> </ul>
</nav> </nav>

View File

@ -54,11 +54,20 @@
<div id="chatInputContainer"> <div id="chatInputContainer">
<div> <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> <textarea maxlength="{CHAT_MAX_LENGTH}" class="long"></textarea>
<span id="chatQuickSettings"> <span id="chatQuickSettings">
<span class="icon icon24 fa-ellipsis-v"></span> <span class="icon icon24 fa-ellipsis-v"></span>
</span> </span>
</div> </div>
</div>
<small class="innerError" style="display: none"></small> <small class="innerError" style="display: none"></small>
<span class="charCounter dimmed"></span> <span class="charCounter dimmed"></span>
</div> </div>