Re: Copy script button cleanup - Mailing list pgsql-www

From Magnus Hagander
Subject Re: Copy script button cleanup
Date
Msg-id CABUevExmHVYwddKvFUWkjY8Ev-xAE2p0-mP0wJqJDs1bazMn7A@mail.gmail.com
Whole thread Raw
In response to Copy script button cleanup  (Dave Page <dpage@pgadmin.org>)
Responses Re: Copy script button cleanup
Re: Copy script button cleanup
List pgsql-www


On Tue, 2 Dec 2025 at 12:30, Dave Page <dpage@pgadmin.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, and I'm told you're not supposed to use "var" for variables in js due to the broken scoping :)

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...

--

pgsql-www by date:

Previous
From: Dave Page
Date:
Subject: Copy script button cleanup
Next
From: Magnus Hagander
Date:
Subject: Re: Images in news mails