* Multiple file uploads * mes_img_wrapper * mes_video_wrapper * Named export instead of function wrapper * Update public/scripts/chats.js Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Fix optional chaining for message extra * Preserve existing files with paste * Improve swipe message extras clean-up * Clean-up: Add chat_backgrounds to known images * Add ensureMessageMediaIsArray to getContext * Fix compatibility warning * Update to media array * Move de-dupe check logic * Fix comment * Fix clean-up logic * Improve typing * `feat/multi-file` Added a toggle between the old gallery and new image list. (#4722) * Added "Toggle Gallery" button. Added `getContainerInfo`. * Refactor * Change checkbox toggle to select * Ensure media_display is set correctly only if any image_swipes were migrated * Rename function * Support Date in parseTimestamp * Add type to main chat array * Add media display reload prompt --------- Co-authored-by: user <user@exmaple.com> Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com> * Use a single wrapper block for media * Fix type annotation * Fix video display in list mode * Refactor saveImageToMessage to include title in media object * Use named constants in migrateMediaToArray * Update img control styles * Fix error container state * Refactor onImageSwiped * Remove redundant event handler * Refactor expandMessageMedia * Use shared function for display handling, fix notice logic * Enhance ChatMessage and ChatMessageExtra types * Refactor media display reload logic * Improve styling for media containers * Adjust spacing in file form styles * Fix scroll handling in appendMediaToMessage * Reduce flicker in appendMediaToMessage * Extract scrollOnMediaLoad func * Improve scroll behavior in gallery display * Improve delegation for click events * Add file d&d handler to #form_sheld * Improve scroll adjust for slow connections * Adjust debounce timeout * Add messageMedia enum provider --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: DeclineThyself <FallenHaze@tutamail.com> Co-authored-by: user <user@exmaple.com>
68 lines
1.3 KiB
CSS
68 lines
1.3 KiB
CSS
.file_attached {
|
|
display: flex;
|
|
min-width: 150px;
|
|
max-width: calc(var(--sheldWidth) * 0.9);
|
|
flex-direction: row;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin: 0.25em auto;
|
|
padding: 0 0.75em;
|
|
border: 2px solid var(--SmartThemeBorderColor);
|
|
border-radius: 15px;
|
|
background-color: var(--white20a);
|
|
}
|
|
|
|
.mes_file_container {
|
|
cursor: default;
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
background-color: var(--white20a);
|
|
border: 2px solid var(--SmartThemeBorderColor);
|
|
padding: 0.5em 1em;
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.mes .mes_file_wrapper:empty {
|
|
display: none;
|
|
}
|
|
|
|
.mes .mes_file_wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
.mes_file_container .right_menu_button {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.mes_file_container .mes_file_size,
|
|
.file_attached .file_size {
|
|
font-size: 0.9em;
|
|
color: var(--SmartThemeQuoteColor);
|
|
}
|
|
|
|
.file_attached .file_name,
|
|
.mes_file_container .mes_file_name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#file_form {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.file_modal {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
text-align: left;
|
|
}
|