Compare commits

..

1 commit

Author SHA1 Message Date
renovate[bot]
a03c3c4bb5
chore(deps): update python:3.11-bookworm docker digest to ba55caf 2023-12-06 20:22:26 +00:00
5 changed files with 15 additions and 27 deletions

View file

@ -1,4 +1,4 @@
FROM python:3.11-bookworm@sha256:ba7a7ac30c38e119c4304f98ef0e188f90f4f67a958bb6899da9defb99bfb471 as builder
FROM python:3.11-bookworm@sha256:ba55cafcd9bf4c8fad28b770ed9cacab324354666762c1af3017ea1f4f001457 as builder
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \

View file

@ -86,14 +86,11 @@ class _DateTimePicker extends HookWidget {
final timeZones = useMemoized(() => getAllTimeZones(), const []);
void pickDate() async {
final now = DateTime.now();
// Handles cases where the date from the asset is far off in the future
final initialDate = date.value.isAfter(now) ? now : date.value;
final newDate = await showDatePicker(
context: context,
initialDate: initialDate,
initialDate: date.value,
firstDate: DateTime(1800),
lastDate: now,
lastDate: DateTime.now(),
);
if (newDate == null) {
return;

View file

@ -336,18 +336,14 @@ export class AssetService {
res.set('Cache-Control', 'private, max-age=86400, no-transform');
res.header('Content-Type', mimeTypes.lookup(filepath));
return new Promise((resolve, reject) => {
res.sendFile(filepath, options, (error: Error) => {
if (!error) {
resolve();
return;
}
res.sendFile(filepath, options, (error: Error) => {
if (!error) {
return;
}
if (error.message !== 'Request aborted') {
this.logger.error(`Unable to send file: ${error.name}`, error.stack);
}
reject(error);
});
if (error.message !== 'Request aborted') {
this.logger.error(`Unable to send file: ${error.name}`, error.stack);
}
});
}

View file

@ -205,13 +205,12 @@
<section class="px-4 py-4 text-sm">
<div class="flex h-10 w-full items-center justify-between">
<h2>PEOPLE</h2>
<div class="flex gap-2 items-center">
<div class="flex gap-2">
{#if people.some((person) => person.isHidden)}
<CircleIconButton
title="Show hidden people"
icon={showingHiddenPeople ? mdiEyeOff : mdiEye}
padding="1"
buttonSize="32"
on:click={() => (showingHiddenPeople = !showingHiddenPeople)}
/>
{/if}
@ -220,7 +219,6 @@
icon={mdiPencil}
padding="1"
size="20"
buttonSize="32"
on:click={() => (showEditFaces = true)}
/>
</div>
@ -339,7 +337,7 @@
</div>
{#if isOwner}
<button class="focus:outline-none p-1">
<button class="focus:outline-none">
<Icon path={mdiPencil} size="20" />
</button>
{/if}
@ -351,7 +349,7 @@
<Icon path={mdiCalendar} size="24" />
</div>
</div>
<button class="focus:outline-none p-1">
<button class="focus:outline-none">
<Icon path={mdiPencil} size="20" />
</button>
</div>
@ -509,7 +507,7 @@
</div>
{:else if !asset.exifInfo?.city && !asset.isReadOnly && $user && asset.ownerId === $user.id}
<div
class="flex justify-between place-items-start gap-4 py-4 rounded-lg hover:dark:text-immich-dark-primary hover:text-immich-primary"
class="flex justify-between place-items-start gap-4 py-4 rounded-lg pr-2 hover:dark:text-immich-dark-primary hover:text-immich-primary"
on:click={() => (isShowChangeLocation = true)}
on:keydown={(event) => event.key === 'Enter' && (isShowChangeLocation = true)}
tabindex="0"
@ -523,7 +521,7 @@
<p>Add a location</p>
</div>
<div class="focus:outline-none p-1">
<div class="focus:outline-none">
<Icon path={mdiPencil} size="20" />
</div>
</div>

View file

@ -11,13 +11,10 @@
export let forceDark = false;
export let hideMobile = false;
export let iconColor = 'currentColor';
export let buttonSize: string | undefined = undefined;
</script>
<button
{title}
style:width={buttonSize ? buttonSize + 'px' : ''}
style:height={buttonSize ? buttonSize + 'px' : ''}
style:background-color={backgroundColor}
style:--immich-icon-button-hover-color={hoverColor}
class:dark:text-immich-dark-fg={!forceDark}