Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive layout for ConversationAvatarEditor #9711

Merged
merged 1 commit into from
Jun 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/components/ConversationSettings/ConversationAvatarEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<template>
<section id="vue-avatar-section">
<div class="avatar__container avatar__container--horizontal">
<div class="avatar__container">
<div v-if="!showCropper" class="avatar__preview">
<div v-if="emojiAvatar"
class="avatar__preview-emoji"
Expand All @@ -40,7 +40,7 @@
ref="cropper"
class="avatar__cropper"
v-bind="cropperOptions" />
<div v-if="editable" class="avatar__container">
<div v-if="editable" class="avatar__controls">
<div class="avatar__buttons">
<!-- Set emoji as avatar -->
<template v-if="!showCropper">
Expand Down Expand Up @@ -368,16 +368,18 @@ section {
.avatar {
&__container {
margin: 0 auto;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: flex-start;
gap: 16px;
}
&__controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
&--horizontal {
flex-direction: row;
align-items: flex-start;
}
}
&__warning {
Expand Down