Skip to content

Commit

Permalink
more tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Sep 19, 2024
1 parent 2124adc commit 0df769d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions resources/js/components/gallery/thumbs/PhotoThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
</span>
<span v-else class="block mt-0 mr-0 mb-2 ml-3 text-2xs text-surface-300">{{ props.photo.preformatted.created_at }}</span>
</div>
<div v-if="props.photo.precomputed.is_video" class="w-full top-0 h-full absolute hover:opacity-70 transition-opacity duration-300">
<img class="absolute top-1/2 -translate-y-1/2 aspect-square w-fit h-fit" alt="play" :src="srcPlay" />
<div
v-if="props.photo.precomputed.is_video"
class="w-full top-0 h-full absolute hover:opacity-70 transition-opacity duration-300 flex justify-center items-center"
>
<img class="absolute aspect-square w-fit h-fit" alt="play" :src="srcPlay" />
</div>
<div v-if="user" class="badges absolute mt-[-1px] ml-1 top-0 left-0">
<ThumbBadge v-if="props.photo.is_starred" class="badge--cover bg-yellow-500" icon="star" />
Expand Down
3 changes: 3 additions & 0 deletions resources/js/composables/selections/selections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function useSelection(

// We are able to edit.
e.preventDefault();
e.stopPropagation();

if (ctrlKeyState.value) {
handlePhotoCtrl(idx, e);
Expand Down Expand Up @@ -119,9 +120,11 @@ export function useSelection(
if (!ctrlKeyState.value && !shiftKeyState.value) {
return;
}
console.log("albumCLick", idx);

// We are able to edit.
e.preventDefault();
e.stopPropagation();

if (ctrlKeyState.value) {
handleAlbumCtrl(idx, e);
Expand Down
4 changes: 0 additions & 4 deletions resources/js/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ body {
background-color: var(--p-surface-900);
}
}
// font-family: var(--font-family);
// font-weight: 400;
// color: var(--text-color);
</style>
6 changes: 5 additions & 1 deletion resources/js/views/gallery-panels/Albums.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<KeybindingsHelp v-model:visible="isKeybindingsHelpOpen" v-if="user?.id" />
<div v-if="rootConfig && rootRights">
<div v-if="rootConfig && rootRights" @click="unselect">
<AlbumsHeader
v-model:is-login-open="isLoginOpen"
v-if="user"
Expand Down Expand Up @@ -118,6 +118,10 @@ const { selectedAlbum, selectedAlbumsIdx, selectedAlbums, selectedAlbumsIds, alb
const { isMoveAlbumVisible, toggleMoveAlbum } = useMoveAlbumOpen();
const { isDeleteAlbumVisible, toggleDeleteAlbum } = useDeleteAlbumOpen();
const unselect = () => {
selectedAlbumsIdx.value = [];
};
// Unused.
const photoCallbacks = {
star: () => {},
Expand Down

0 comments on commit 0df769d

Please sign in to comment.