minor fixes
This commit is contained in:
parent
173deab5da
commit
94903a2009
|
@ -56,7 +56,7 @@ export default function Sidebar(props: Props) {
|
|||
}
|
||||
function exportFiles() {
|
||||
if (isElectron()) {
|
||||
exportService.selectDirectory();
|
||||
exportService.exportFiles(props.files);
|
||||
} else {
|
||||
setMessageModalView(true);
|
||||
}
|
||||
|
|
|
@ -404,7 +404,7 @@ export default function Gallery(props: Props) {
|
|||
setBannerErrorCode={setBannerErrorCode}
|
||||
acceptedFiles={props.acceptedFiles}
|
||||
/>
|
||||
<Sidebar />
|
||||
<Sidebar files={data} />
|
||||
<UploadButton openFileUploader={props.openFileUploader} />
|
||||
{!isFirstLoad && data.length == 0 ? (
|
||||
<Jumbotron>
|
||||
|
@ -496,7 +496,7 @@ export default function Gallery(props: Props) {
|
|||
<List
|
||||
itemSize={(index) =>
|
||||
timeStampList[index].itemType ===
|
||||
ITEM_TYPE.TIME
|
||||
ITEM_TYPE.TIME
|
||||
? DATE_CONTAINER_HEIGHT
|
||||
: IMAGE_CONTAINER_HEIGHT
|
||||
}
|
||||
|
@ -513,14 +513,14 @@ export default function Gallery(props: Props) {
|
|||
columns={
|
||||
timeStampList[index]
|
||||
.itemType ===
|
||||
ITEM_TYPE.TIME
|
||||
ITEM_TYPE.TIME
|
||||
? 1
|
||||
: columns
|
||||
}
|
||||
>
|
||||
{timeStampList[index]
|
||||
.itemType ===
|
||||
ITEM_TYPE.TIME ? (
|
||||
ITEM_TYPE.TIME ? (
|
||||
<DateContainer>
|
||||
{
|
||||
timeStampList[
|
||||
|
@ -539,7 +539,7 @@ export default function Gallery(props: Props) {
|
|||
index
|
||||
]
|
||||
.itemStartIndex +
|
||||
idx
|
||||
idx
|
||||
);
|
||||
}
|
||||
)
|
||||
|
|
|
@ -96,8 +96,8 @@ class DownloadManager {
|
|||
decryptedBlob = await this.convertHEIC2JPEG(decryptedBlob);
|
||||
}
|
||||
return new ReadableStream({
|
||||
start(controller: ReadableStreamDefaultController) {
|
||||
controller.enqueue(decryptedBlob);
|
||||
async start(controller: ReadableStreamDefaultController) {
|
||||
controller.enqueue(await decryptedBlob.arrayBuffer());
|
||||
controller.close();
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue