Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQRZG-007eP8-03 for pgsql-www@arkaria.postgresql.org; Tue, 02 Dec 2025 14:41:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQRZF-008I3U-0G for pgsql-www@arkaria.postgresql.org; Tue, 02 Dec 2025 14:41:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQRZE-008I3M-2j for pgsql-www@lists.postgresql.org; Tue, 02 Dec 2025 14:41:25 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vQRZC-002keH-39 for pgsql-www@lists.postgresql.org; Tue, 02 Dec 2025 14:41:24 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-7895017c722so53487897b3.2 for ; Tue, 02 Dec 2025 06:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1764686480; x=1765291280; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BRtunmm2dAhAthb8M7Czugs3gZ3F5+Jgu5ZGMYlgvw8=; b=M3NqwmdoI+GDIDCWud67HmXW7Iw+PXeGsFAHgluTBvh9M0Vrvf6v7FeMVIl/8tdx+M tG0NtPWwyYNzTmQ7GKvhMJZeJ/vHAezXMOjQNuily3GDM/xBzRB2mX/qoJGX/lnQbMFm mlnnqyYwJxPIt+ljnj2DZXiEZ5cgASeH1r6RuxZI3ZNmvyEI6qukhdS0zACxrIDqRU/F v4T/bjsXrh3TrRqekhNAtfgoWb7aIagavROKD1h/tDM0iQnPMKfsnfAkWbPXcBObjTts La4i9SbH7M5kI/AlOSYTYHrqYsQP4yP/965h+DUUXm3bvHox6RuqR6WeeHVD1utug9AN 0o9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764686480; x=1765291280; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BRtunmm2dAhAthb8M7Czugs3gZ3F5+Jgu5ZGMYlgvw8=; b=OxSwi3Z8wc4euIjFRVqesylfKwa4wzpOnwYGQG/oMYbos7Ul8BkRoPITUBbg1CUlIa 3VyEhMPL3poua6169u9etOUGL6Pi/mqMorFLlo4uHeBtGCLYoCYqeM0R1Z1JXQYWHUrL Nb0g/M7kIZim8IWE6J98DW9uxRBaY3t8l8nDJKi52+4IfgWCgm58T8TqmsRIHCeiDzPo mbBVIr17sLDDg+eBO0eMvB0rXlWA5sUp8FA/JM24IJgR4NO9CJp6ULxcn4SAtNiVImcg H86TssMRxPlh+6fkj8aWprNvezyamCQxwcfVOz4kZk2J3g3tZd20DlkULLrQug/NBiY7 ZzzA== X-Gm-Message-State: AOJu0YyBouUV0jDgOPPUhiMiPJGggEk+SFFmDYEzrhYRlbm+Xbp09GJ9 bSQey+bBP9Wa7hzFbDYp0pj3zxtmHFOmtkc5C9CjLd5cvHkbO29dzvMg84y+UW/S3S5fW+dI39Y jE75+XPdHQg+RfXZwg0J8Q37NzOtkTrEzo/1/2myi5GWLtjuPxYbuEuOU X-Gm-Gg: ASbGnctV3NvmMUCEocobnEmn/4GZvaqtbCN7gk/lhM7XTERDtl68IYrWzjkZltL1wVK uSzCmZeF2ll1plxkOHlCPtoyInYMnPVD6haZuycUTC1xpnOZpRoTOb9mKVJJk98augbShUq79Ax 1gCLpUpX/mRShdWooFxNfN/PCVxiazW7rjPhdcpNN8+4YwKfqA4dzUBRLwUF2OLQG/idIX+6mL1 ls/VesySGZer+V2jJj4IFH/YOq71mtE5lyk2cDK/Aq8fQv54Mbse3y3DF45KJ1IqFewYtc= X-Google-Smtp-Source: AGHT+IHAhGu4yZp9tbL9q5c9sOjWA4kNsmejyFz9TM1SvymSY5D53gjfhHQwvekdBNuM73Kxobo8Zv6J/4/QeMjIx48= X-Received: by 2002:a05:690c:6302:b0:786:59d3:49b5 with SMTP id 00721157ae682-78ab6e39ed2mr238044547b3.23.1764686480205; Tue, 02 Dec 2025 06:41:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Magnus Hagander Date: Tue, 2 Dec 2025 15:41:07 +0100 X-Gm-Features: AWmQ_bmDSWEhvwQdd2nJ7Xm1Kj3oI1ga5rdWfk-Dks4ZVOSLyWKevS33fR5-RBE Message-ID: Subject: Re: Copy script button cleanup To: Dave Page Cc: PostgreSQL WWW Content-Type: multipart/alternative; boundary="000000000000cafca40644f91679" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000cafca40644f91679 Content-Type: text/plain; charset="UTF-8" On Tue, 2 Dec 2025 at 12:30, Dave Page 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... -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --000000000000cafca40644f91679 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, 2 Dec 2= 025 at 12:30, Dave Page <dpage@pgad= min.org> wrote:
The Copy Script buttons on the Linux package i= nstallation pages look horrific. See before.png.

T= he attached patch makes them look much nicer, with proper sizing and an ico= n based button. On click, it briefly changes to a green checkmark to show c= onfirmation. See the after screenshots.

I'll a= pply 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 "fa= llback for text based buttons" is?=C2=A0 Aren't they all replaced = with icons?

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

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

--
=C2=A0Magnus Hagander
=C2=A0Me: https://www.hagander.net/
=C2=A0Work: https://www.redpill-l= inpro.com/
--000000000000cafca40644f91679--