diff --git a/files/style/be.bastelstu.chat.scss b/files/style/be.bastelstu.chat.scss index 90967c9..ace5417 100644 --- a/files/style/be.bastelstu.chat.scss +++ b/files/style/be.bastelstu.chat.scss @@ -378,15 +378,26 @@ $chatEmbedMaxWidth: 400px; > div { display: flex; - align-items: center; - > .flexibleTextarea { - flex: 1 0 auto; - max-width: 100%; + > div.chatAttachButton { + flex-grow: 0; + flex-shrink: 0; + margin-right: 5px; } - > #chatQuickSettings { - flex: 0 0 auto; + > div.chatInputWrapper { + flex-grow: 1; + display: flex; + align-items: center; + + > .flexibleTextarea { + flex: 1 0 auto; + max-width: 100%; + } + + > #chatQuickSettings { + flex: 0 0 auto; + } } } diff --git a/templates/quickSettings.tpl b/templates/quickSettings.tpl index 8d18513..83da260 100644 --- a/templates/quickSettings.tpl +++ b/templates/quickSettings.tpl @@ -4,9 +4,6 @@
  • {lang}chat.room.button.fullscreen{/lang}
  • {lang}chat.room.button.notifications{/lang}
  • {lang}chat.room.button.autoscroll{/lang}
  • - {if $__wcf->getSession()->getPermission('user.chat.canAttach')} -
  • {lang}wcf.attachment.attachments{/lang} - {/if} {event name='buttons'} diff --git a/templates/room.tpl b/templates/room.tpl index 6c1e044..0c9e986 100644 --- a/templates/room.tpl +++ b/templates/room.tpl @@ -54,10 +54,19 @@
    - - - - + {if $__wcf->getSession()->getPermission('user.chat.canAttach')} +
    + + + +
    + {/if} +
    + + + + +