Skip to content

Commit

Permalink
Adjusted with suggested CSS (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Apr 28, 2024
1 parent 5f26d12 commit ffcb72d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@

public function up(): void
{
Schema::table(self::TABLE_SV, function (Blueprint $table) {
$table->string(self::COLUMN)->default(self::DEFAULT);
});
if (!Schema::hasColumn(self::TABLE_SV, self::COLUMN)) {
Schema::table(self::TABLE_SV, function (Blueprint $table) {
$table->string(self::COLUMN)->default(self::DEFAULT);
});
}
}

public function down(): void
Expand Down
4 changes: 3 additions & 1 deletion resources/js/lycheeOrg/actions/swipeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class SwipeActions {
Math.max(
25,
Math.floor(
0.15 * (type === "x" ? window.innerWidth || document.body.clientWidth : window.innerHeight || document.body.clientHeight),
type === "x"
? 0.25 * (window.innerWidth || document.body.clientWidth)
: 0.5 * (window.innerHeight || document.body.clientHeight),
),
),
// Minimum velocity the gesture must be moving when the gesture ends to be
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/gallery/photo/sidebar.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="lychee_sidebar"
x-data="photoSidebarPanel()"
x-on:photo-updated.window="refreshSidebar($store.photo)"
class="border-t border-solid border-primary-500 text-text-main-0 w-[360px] h-full bg-bg-800">
class="border-t border-solid border-primary-500 text-text-main-0 w-[360px] h-full pr-4 break-words">
<div class="grid grid-cols-[auto minmax(0, 1fr)] mt-8">
<h1 class="col-span-2 text-center text-lg font-bold my-4">
{{ __('lychee.ALBUM_ABOUT') }}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/gallery/view/photo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class="absolute top-0 h-1/4 w-full sm:w-1/2 left-1/2 -translate-x-1/2 opacity-50
<x-gallery.photo.properties />
</div>
</template>
<aside id="lychee_sidebar_container" class="h-full relative overflow-clip transition-all"
<aside id="lychee_sidebar_container" class="h-full relative transition-all overflow-x-clip overflow-y-scroll bg-bg-800"
:class="photoFlags.isDetailsOpen ? 'w-[360px]' : 'w-0 translate-x-full'">
<x-gallery.photo.sidebar />
</aside>
Expand Down

0 comments on commit ffcb72d

Please sign in to comment.