Skip to content

Commit c23ed7d

Browse files
ISSUE-130: UI fixes for monthly overview
1 parent 3e83b92 commit c23ed7d

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

public/assets/flowbite/tailwind.min.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,10 @@ input:checked + .toggle-bg {
13671367
height: 100vh;
13681368
}
13691369

1370+
.max-h-\[calc\(100vh-200px\)\] {
1371+
max-height: calc(100vh - 200px);
1372+
}
1373+
13701374
.max-h-\[calc\(100vh-240px\)\] {
13711375
max-height: calc(100vh - 240px);
13721376
}

templates/html/monthly-stats.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<!-- MONTHLY STATS -->
1414
<div class="grid grid-cols-1 mb-4">
1515
<div class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm sm:p-6">
16-
<div class="relative overflow-x-auto">
16+
<div class="overflow-auto max-h-[calc(100vh-200px)] relative">
1717
<table class="w-full text-sm text-center text-gray-500">
18-
<thead class="text-xs text-gray-700 uppercase bg-gray-50">
18+
<thead class="z-[10] sticky top-0 text-xs text-gray-700 uppercase bg-gray-50">
1919
<tr>
2020
<th scope="col" class="px-2 py-3 sticky left-0 bg-gray-50">
2121

tests/Domain/Strava/BuildHtmlVersion/__snapshots__/BuildHtmlVersionCommandHandlerTest--testHandle--buildhtmlmonthly-stats.html.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<!-- MONTHLY STATS -->
1919
<div class="grid grid-cols-1 mb-4">
2020
<div class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm sm:p-6">
21-
<div class="relative overflow-x-auto">
21+
<div class="overflow-auto max-h-[calc(100vh-200px)] relative">
2222
<table class="w-full text-sm text-center text-gray-500">
23-
<thead class="text-xs text-gray-700 uppercase bg-gray-50">
23+
<thead class="z-[10] sticky top-0 text-xs text-gray-700 uppercase bg-gray-50">
2424
<tr>
2525
<th scope="col" class="px-2 py-3 sticky left-0 bg-gray-50">
2626

tests/Domain/Strava/BuildHtmlVersion/__snapshots__/BuildHtmlVersionCommandHandlerTest--testHandleForRunningActivitiesOnly--buildhtmlmonthly-stats.html.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<!-- MONTHLY STATS -->
1919
<div class="grid grid-cols-1 mb-4">
2020
<div class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm sm:p-6">
21-
<div class="relative overflow-x-auto">
21+
<div class="overflow-auto max-h-[calc(100vh-200px)] relative">
2222
<table class="w-full text-sm text-center text-gray-500">
23-
<thead class="text-xs text-gray-700 uppercase bg-gray-50">
23+
<thead class="z-[10] sticky top-0 text-xs text-gray-700 uppercase bg-gray-50">
2424
<tr>
2525
<th scope="col" class="px-2 py-3 sticky left-0 bg-gray-50">
2626

tests/strava.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)