Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(tours): drop two unused test imports, and keep the take-over list clear of its scrollbar

Mauriceb8eb2d909ecc
diff --git a/client/src/components/Tours/library/TourLibraryDialog.tsx b/client/src/components/Tours/library/TourLibraryDialog.tsx
index 144e46b20..7e35b4dab 100644
--- a/client/src/components/Tours/library/TourLibraryDialog.tsx
+++ b/client/src/components/Tours/library/TourLibraryDialog.tsx
@@ -323,7 +323,7 @@ export function TourLibraryDialog({ library }: { library: TourLibrary }) {
<ListState library={library} />
{library.list && library.list.tours.length > 0 && (
<ul
- className={`m-0 flex max-h-[420px] list-none flex-col gap-0.5 overflow-y-auto p-0 transition-opacity ${library.listStatus === 'loading' ? 'opacity-60' : ''}`}
+ className={`m-0 flex max-h-[420px] list-none flex-col gap-0.5 overflow-y-auto py-0 ps-0 pe-2 transition-opacity [scrollbar-gutter:stable] ${library.listStatus === 'loading' ? 'opacity-60' : ''}`}
data-testid="tour-library-list"
>
{library.list.tours.map((tour) => (
diff --git a/server/tests/e2e/tours-bike.e2e.test.ts b/server/tests/e2e/tours-bike.e2e.test.ts
index b3fdf8e46..5fd7de2a4 100644
--- a/server/tests/e2e/tours-bike.e2e.test.ts
+++ b/server/tests/e2e/tours-bike.e2e.test.ts
@@ -22,10 +22,8 @@ import { RealtimeModule } from '../../src/nest/realtime/realtime.module';
import { RealtimeService } from '../../src/nest/realtime/realtime.service';
import { ToursModule } from '../../src/nest/tours/tours.module';
import { createSnapshotTestDb } from '../helpers/db-mock';
-import { makePlace } from '../helpers/factories/places';
import { countRows, deleteRows, findRow, insertRows } from '../helpers/factories/rows';
import { setAddonEnabled } from '../helpers/factories/settings';
-import { makeTour } from '../helpers/factories/tours';
import { addTripMember } from '../helpers/factories/trips';
import { makeUser } from '../helpers/factories/users';
import { FakeRealtimeService } from '../helpers/fake-realtime';