6af4605bd0
- Implement attachment preview - Implement attachment-box redesign - Make filename editable - Use new reindex icon - Update attachment note layout - Fix reader.js eslint errors - Add fallback attachment icon and use redesign - Use attachment preview for regular items - Fix pinned pane not exists error - Double click preview to open to page - Fix itemPane pin bug - Preload preview iframe - Fix item pane scroll - Add media preview support - Fix item pane scroll bar on macos - Fix reader sidebar with standalone attachment - Fix attributeChangedCallback - Add attachmentBox _updateAttachmentIDs - Make attachment notes readonly and simplify note window script - Implement convert attachment note to new note - Support preview dragging - Annotations box redesign - Support custom buttons in the collapsible-section - Add preview toggle button - Fix collapsible section attribute listener - Make attachment box notify sync to fix errors in test
65 lines
902 B
SCSS
65 lines
902 B
SCSS
attachments-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.head {
|
|
.togglePreview {
|
|
display: none;
|
|
}
|
|
|
|
&:hover {
|
|
.togglePreview {
|
|
display: unset;
|
|
}
|
|
}
|
|
}
|
|
|
|
&[data-use-preview] {
|
|
.togglePreview {
|
|
@include svgicon-menu('preview-hide', 'universal', '16');
|
|
}
|
|
}
|
|
|
|
&:not([data-use-preview]) {
|
|
attachment-preview {
|
|
visibility: hidden;
|
|
display: none;
|
|
}
|
|
|
|
.togglePreview {
|
|
@include svgicon-menu('preview-show', 'universal', '16');
|
|
}
|
|
}
|
|
|
|
& > collapsible-section > .body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
|
|
attachment-preview {
|
|
opacity: 1;
|
|
padding: 2px 0px 4px 0px;
|
|
|
|
&[data-preview-status=fail] {
|
|
display: none;
|
|
opacity: 0;
|
|
|
|
.icon {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
&[data-preview-status=loading] {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.attachments-container {
|
|
padding-left: 16px;
|
|
}
|
|
}
|
|
}
|