Re: Copy script button cleanup

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL WWW <pgsql-www(at)lists(dot)postgresql(dot)org>
Subject: Re: Copy script button cleanup
Date: 2025-12-03 10:38:26
Message-ID: CA+OCxoyE1J2hY7tR=mw+ikQSPbD61ftjouk4fkvkmA4qfaODDA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Tue, 2 Dec 2025 at 14:41, Magnus Hagander <magnus(at)hagander(dot)net> wrote:

>
>
> On Tue, 2 Dec 2025 at 12:30, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
>> The Copy Script buttons on the Linux package installation pages look
>> horrific. See before.png.
>>
>> The attached patch makes them look much nicer, with proper sizing and an
>> icon based button. On click, it briefly changes to a green checkmark to
>> show confirmation. See the after screenshots.
>>
>> I'll apply this in a couple of days if there are no objections.
>>
>>
> LGTM in general and certainly is a lot prettier.
>
> Can you explain what that "fallback for text based buttons" is? Aren't
> they all replaced with icons?
>

Oh, yeah. That's no longer needed now the patch is complete. I'll remove it.

>
> Oh, and I'm told you're not supposed to use "var" for variables in js due
> to the broken scoping :)
>

Old habits die hard :-(

>
> And while you're poking at it, one thing I've really wanted is a "copy
> without the sudo parts". But I'm guessing that would be a lot more
> complicated than what you're fixing here...
>

Ask and thou shalt receive.

2 patches attached. Both fix the original issue. One also adds the no sudo
button.

--
Dave Page
pgAdmin: https://www.pgadmin.org
PostgreSQL: https://www.postgresql.org
pgEdge: https://www.pgedge.com

Attachment Content-Type Size
copy_script_buttons_no_sudo_v1.diff application/octet-stream 11.6 KB
copy_script_buttons_v2.diff application/octet-stream 6.8 KB

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Daniel Gustafsson 2025-12-03 13:26:51 Re: Copy script button cleanup
Previous Message Magnus Hagander 2025-12-02 21:30:44 Re: Images in news mails