Finish unification of attachment sending

This commit is contained in:
N-Pex 2025-06-11 18:04:56 +02:00
parent fd82fd8840
commit a92d767fc2
11 changed files with 246 additions and 1100 deletions

View file

@ -1,8 +1,5 @@
@use "@/assets/css/variables" as *;
$large-button-height: $min-touch-target;
$small-button-height: 36px;
$background: #000000;
$backgroundSection: #181719;
$backgroundHilite: #383739;
@ -23,52 +20,9 @@ $hiliteColor: #4642f1;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 16px;
.send-attachments__title {
color: $text;
text-align: center;
font-size: 11.54 * $chat-text-size;
font-family: "Inter", sans-serif;
font-weight: 700;
line-height: 140%;
letter-spacing: 0.34px;
text-transform: uppercase;
margin-top: 13px;
margin-bottom: 25px;
}
.background {
width: 100%;
height: 50%;
background-color: $background;
&.drop-target {
background-color: $backgroundHilite;
}
border-radius: 19px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.file-format-info {
opacity: 0.6;
color: $text;
text-align: center;
font-size: 11 * $chat-text-size;
font-family: "Inter", sans-serif;
line-height: 117%;
letter-spacing: 0.4px;
margin-top: 13px;
background: transparent;
}
.v-btn {
font-family: "Inter", sans-serif;
font-weight: 700;
@ -89,6 +43,20 @@ $hiliteColor: #4642f1;
}
}
.back-button {
position: absolute;
top: 16px;
left: 16px;
margin: 0;
z-index: 1;
}
.send-button {
position: absolute;
top: 4px;
right: 4px;
}
textarea {
color: rgba($text, 80%) !important;
}
@ -97,15 +65,7 @@ $hiliteColor: #4642f1;
color: rgba($text, 80%) !important;
}
.attachment-wrapper {
width: 100%;
flex: 0 0 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.file-drop-current-item {
.send-attachments__selecting__current-item {
width: 100%;
flex: 1 1 100%;
background-color: $backgroundSection;
@ -134,27 +94,6 @@ $hiliteColor: #4642f1;
}
}
.send-attachments__current-item__info {
flex: 0 0 80px;
text-align: start;
margin: 18px 20px;
padding: 0;
position: relative;
.send-attachments__current-item__info__size {
white-space: pre;
overflow: hidden;
margin-right: 36px;
text-overflow: ellipsis;
}
.send-attachments__current-item__info__size__filename {
opacity: 0.7;
font-size: 0.8em;
}
}
.file-drop-thumbnail-container {
width: 100%;
padding: 13px 20px 15px 20px;
@ -175,6 +114,23 @@ $hiliteColor: #4642f1;
scrollbar-width: none;
/* Firefox */
.v-badge {
margin-right: 8px;
}
.v-badge__badge {
top: 0;
width: 12px;
height: 12px;
padding: 0;
min-width: 12px;
user-select: none;
span {
width: 100%;
height: 100%;
}
}
.file-drop-thumbnail {
width: 46px;
height: 46px;
@ -264,7 +220,7 @@ $hiliteColor: #4642f1;
flex: 0 0 auto;
width: 100%;
margin-bottom: 50px;
padding: 16px 18px;
padding: 6px 8px;
font-family: "Inter", sans-serif;
font-weight: 300;