considerably improve styling of upload modal on mobile
This commit is contained in:
parent
7fd46f2d6c
commit
f2783260f1
2 changed files with 34 additions and 7 deletions
|
|
@ -491,6 +491,8 @@
|
||||||
.edit-image {
|
.edit-image {
|
||||||
.panel-body {
|
.panel-body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current-avatar {
|
.current-avatar {
|
||||||
|
|
@ -499,9 +501,19 @@
|
||||||
|
|
||||||
.image-container {
|
.image-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0 1em 0.5em;
|
align-self: center;
|
||||||
|
margin: 0 0 1em;
|
||||||
|
max-height: 30em;
|
||||||
|
max-width: 100%;
|
||||||
|
flex: 1 0 20em;
|
||||||
|
aspect-ratio: 1;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
|
||||||
|
&.-banner {
|
||||||
|
aspect-ratio: 3;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.new-image {
|
.new-image {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -509,6 +521,7 @@
|
||||||
|
|
||||||
.cropper {
|
.cropper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
|
@ -546,4 +559,16 @@
|
||||||
aspect-ratio: unset;
|
aspect-ratio: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#modal.-mobile & {
|
||||||
|
#pick-image {
|
||||||
|
height: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-container {
|
||||||
|
&.-banner {
|
||||||
|
max-height: 10em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -455,8 +455,7 @@
|
||||||
>
|
>
|
||||||
<template #default="inputProps">
|
<template #default="inputProps">
|
||||||
<input
|
<input
|
||||||
v-model="newFields[i].name"
|
v-model="newFields[i].name" :placeholder="$t('settings.profile_fields.name')"
|
||||||
:placeholder="$t('settings.profile_fields.name')"
|
|
||||||
v-bind="propsToNative(inputProps)"
|
v-bind="propsToNative(inputProps)"
|
||||||
class="input"
|
class="input"
|
||||||
>
|
>
|
||||||
|
|
@ -653,7 +652,13 @@
|
||||||
<template #header>
|
<template #header>
|
||||||
{{ editImage === 'avatar' ? $t('settings.change_avatar') : $t('settings.change_banner') }}
|
{{ editImage === 'avatar' ? $t('settings.change_avatar') : $t('settings.change_banner') }}
|
||||||
</template>
|
</template>
|
||||||
<div class="image-container">
|
<p>
|
||||||
|
{{ editImage === 'avatar' ? $t('settings.avatar_size_instruction') : $t('settings.banner_size_instruction' ) }}
|
||||||
|
</p>
|
||||||
|
<div
|
||||||
|
class="image-container"
|
||||||
|
:class="{ '-banner': editImage === 'banner' }"
|
||||||
|
>
|
||||||
<image-cropper
|
<image-cropper
|
||||||
ref="cropper"
|
ref="cropper"
|
||||||
class="cropper"
|
class="cropper"
|
||||||
|
|
@ -669,9 +674,6 @@
|
||||||
>
|
>
|
||||||
{{ $t('settings.upload_picture') }}
|
{{ $t('settings.upload_picture') }}
|
||||||
</button>
|
</button>
|
||||||
<p class="visibility-notice">
|
|
||||||
{{ editImage === 'avatar' ? $t('settings.avatar_size_instruction') : $t('settings.banner_size_instruction' ) }}
|
|
||||||
</p>
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<button
|
<button
|
||||||
class="button-default btn"
|
class="button-default btn"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue