~brettgilio/snippet-devel

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.

Details
Message ID
<20220717184141.69302-1-brown121407@posteo.ro>
DKIM signature
pass
Download raw message
Patch: +9 -5
---
 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.

Details
Message ID
<20220717185214.70247-1-brown121407@posteo.ro>
In-Reply-To
<20220717184141.69302-1-brown121407@posteo.ro> (view parent)
DKIM signature
pass
Download raw message
Patch: +8 -4
---
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.

Details
Message ID
<307ad11e-29b7-bf8e-ee28-caeccd3aa347@c9yh.net>
In-Reply-To
<20220717185214.70247-1-brown121407@posteo.ro> (view parent)
DKIM signature
permerror
Download raw message
On 7/17/2022 1:52 PM, Alexandru-Sergiu Marton wrote:

> ---
> Now with correct indentation. (I hope.)
>
>   ui/html/pages/recent.gohtml | 12 ++++++++----
>   1 file changed, 8 insertions(+), 4 deletions(-)

Thank you for your patch, Sergiu. It has been applied.

https://git.sr.ht/~brettgilio/snippet/commit/182368f56ea1112561b96455f57c9a4e2b19088a

Closing.


Brett Gilio
Reply to thread Export thread (mbox)