This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
2
2
[PATCH] Make recent snippet table span whole width, but limit columns.
---
ui/html/pages/recent.gohtml | 14 +++++++++ -----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/ui/html/pages/recent.gohtml b/ui/html/pages/recent.gohtml
index 01ddd55..8eaaf00 100644
--- a/ui/html/pages/recent.gohtml
+++ b/ui/html/pages/recent.gohtml
@@ -9,21 +9,25 @@
</div>
</div>
{{if .SnippetSlice}}
- <div class="overflow-x-auto max-w-4xl mx-auto">
+ <div class="overflow-x-auto">
<table class="min-w-full text-sm divide-y-2 divide-gray-200">
<thead>
<tr>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">ID</th>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">Title</th>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">Created</th>
+ <th class="w-auto"></th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[4ch]">ID</th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[50ch]">Title</th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[21ch]">Created</th>
+ <th class="w-auto"></th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
{{range .SnippetSlice}}
<tr class="hover:bg-teal-600 hover:text-white transition-all">
- <td class="py-2">#{{.ID}}</td>
+ <td></td>
+ <td class="py-2">#{{.ID}}</td>
<td class="py-2"><a href="/snippet/view/{{.ID}}" class="underline">{{.Title}}</a></td>
<td class="py-2">{{humanDate .Created}}</td>
+ <td></td>
</tr>
{{end}}
</tbody>
--
2.37.1
[PATCH v2] Make recent snippet table span whole width, but limit columns.
---
Now with correct indentation. (I hope.)
ui/html/pages/recent.gohtml | 12 ++++++++ ----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/ui/html/pages/recent.gohtml b/ui/html/pages/recent.gohtml
index 01ddd55..bf365f8 100644
--- a/ui/html/pages/recent.gohtml
+++ b/ui/html/pages/recent.gohtml
@@ -9,21 +9,25 @@
</div>
</div>
{{if .SnippetSlice}}
- <div class="overflow-x-auto max-w-4xl mx-auto">
+ <div class="overflow-x-auto">
<table class="min-w-full text-sm divide-y-2 divide-gray-200">
<thead>
<tr>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">ID</th>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">Title</th>
- <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap">Created</th>
+ <th class="w-auto"></th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[4ch]">ID</th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[50ch]">Title</th>
+ <th class="px-4 py-2 font-medium text-left text-gray-900 whitespace-nowrap w-[21ch]">Created</th>
+ <th class="w-auto"></th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
{{range .SnippetSlice}}
<tr class="hover:bg-teal-600 hover:text-white transition-all">
+ <td></td>
<td class="py-2">#{{.ID}}</td>
<td class="py-2"><a href="/snippet/view/{{.ID}}" class="underline">{{.Title}}</a></td>
<td class="py-2">{{humanDate .Created}}</td>
+ <td></td>
</tr>
{{end}}
</tbody>
--
2.37.1
Re: [PATCH v2] Make recent snippet table span whole width, but limit columns.