f05f832bff
Use more specific css rules for the emoji dimensions in the chat list status preview. Use more round em value for chat list item height. Add global html overflow and height for smoother chat navigation in the desktop Safari. Use offsetHeight instad of a computed style when setting the window height on resize. Remove margin-bottom from the last message to avoid occasional layout shift in the desktop Safari Use break-word to prevent chat message text overflow Resize and scroll the textarea when inserting a new line on ctrl+enter Remove fade transition on route change Ensure proper border radius at the bottom of the chat, remove unused border-radius Prevent the chat header "jumping" on the avatar load.
55 lines
970 B
Vue
55 lines
970 B
Vue
<template>
|
|
<div
|
|
class="media-upload"
|
|
:class="{ disabled: disabled }"
|
|
>
|
|
<label
|
|
class="label"
|
|
:title="$t('tool_tip.media_upload')"
|
|
>
|
|
<i
|
|
v-if="uploading"
|
|
class="progress-icon icon-spin4 animate-spin"
|
|
/>
|
|
<i
|
|
v-if="!uploading"
|
|
class="new-icon icon-upload"
|
|
/>
|
|
<input
|
|
v-if="uploadReady"
|
|
:disabled="disabled"
|
|
type="file"
|
|
style="position: fixed; top: -100em"
|
|
multiple="true"
|
|
@change="change"
|
|
>
|
|
</label>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./media_upload.js" ></script>
|
|
|
|
<style lang="scss">
|
|
@import '../../_variables.scss';
|
|
|
|
.media-upload {
|
|
.label {
|
|
display: inline-block;
|
|
}
|
|
|
|
.new-icon {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.progress-icon {
|
|
display: inline-block;
|
|
line-height: 0;
|
|
&::before {
|
|
/* Overriding fontello to achieve the perfect speeeen */
|
|
margin: 0;
|
|
line-height: 0;
|
|
}
|
|
}
|
|
}
|
|
</style>
|