Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,30 @@
left: auto;
right: 1.25rem;
}

.collapsible-list {
@apply flex flex-col;
}

.collapsible-list__item {
@apply mb-2 p-2 border border-gray-300 rounded-md;
}

@media (max-width: 768px) {
.collapsible-list__item {
@apply mb-1 p-1;
}
}

@media (hover: hover) {
.collapsible-list__item:hover {
@apply bg-gray-100;
}
}

@media (pointer: coarse) {
.collapsible-list__item {
@apply p-3;
}
}
}
6 changes: 3 additions & 3 deletions src/components/routes/ViewAllRoutesModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
{/if}

{#if routes.length > 0}
<div>
<div class="sticky top-0">
<div class="flex flex-col h-full">
<div class="sticky top-0 p-2 bg-white dark:bg-black">
<input
type="text"
placeholder={$t('search.search_for_routes')}
Expand All @@ -92,7 +92,7 @@
</svg>
</div>

<div>
<div class="flex-1 overflow-y-auto p-2">
{#if filteredRoutes.length > 0}
{#each filteredRoutes as route}
<RouteItem {route} {handleModalRouteClick} />
Expand Down