Skip to content

Commit

Permalink
fix(NewMessageUploadEditor): adjust design
Browse files Browse the repository at this point in the history
Signed-off-by: Antreesy <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Sep 5, 2024
1 parent f5dccb5 commit 38c083d
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions src/components/NewMessage/NewMessageUploadEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@
:file="file[1].temporaryMessage.messageParameters.file"
@remove-file="handleRemoveFileFromSelection" />
</template>
<div :key="'addMore'"
class="add-more">
<NcButton :aria-label="addMoreAriaLabel"
type="primary"
class="add-more__button"
@click="clickImportInput">
<template #icon>
<Plus :size="48" />
</template>
</NcButton>
</div>
<NcButton :aria-label="addMoreAriaLabel"
key="add-more"

Check warning on line 42 in src/components/NewMessage/NewMessageUploadEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "key" should go before ":aria-label"
type="tertiary"
class="add-more-button"
size="large"
@click="clickImportInput">
<template #icon>
<Plus :size="48" />
</template>
</NcButton>
</TransitionWrapper>
</template>
<template v-else>
Expand All @@ -67,6 +66,7 @@
:key="modalContainerId"
ref="newMessage"
role="region"
class="upload-editor__textfield"
upload
:token="token"
:container="modalContainerId"
Expand Down Expand Up @@ -258,7 +258,7 @@ export default {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16px;
padding: calc(3 * var(--default-grid-baseline));
&__previews {
display: flex;
Expand All @@ -271,21 +271,29 @@ export default {
border-radius: var(--border-radius-large);
}
}
&__actions {
display: flex;
justify-content: flex-end;
gap: 4px;
padding: 12px 0;
}
}
.add-more {
width: 180px;
height: 180px;
display: flex;
margin: 10px;
&__button {
margin: auto;
&__textfield {
padding-block: calc(var(--default-grid-baseline) * 2);
}
.add-more-button {
width: 164px !important;
height: 176px !important;
margin: 10px;
:deep(.button-vue__icon) {
border-radius: var(--border-radius-pill);
color: var(--color-primary-element-text);
background-color: var(--color-primary-element);
}
}
}
</style>

0 comments on commit 38c083d

Please sign in to comment.