From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sPqWJzVvc2DRpwAAgWs5BA (envelope-from ) for ; Sun, 11 Apr 2021 23:50:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +ZRhITVvc2BLPAAAbx9fmQ (envelope-from ) for ; Sun, 11 Apr 2021 21:50:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6CF0E14074 for ; Sun, 11 Apr 2021 23:50:44 +0200 (CEST) Received: from localhost ([::1]:47220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVhyd-0005Xo-8A for larch@yhetil.org; Sun, 11 Apr 2021 17:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVhxy-0005XZ-DL for guix-patches@gnu.org; Sun, 11 Apr 2021 17:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVhxy-00012w-2G for guix-patches@gnu.org; Sun, 11 Apr 2021 17:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVhxx-0002DT-VV for guix-patches@gnu.org; Sun, 11 Apr 2021 17:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47710] [PATCH] website: Fix dropdown menu shrinking when clicked Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Apr 2021 21:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47710 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Luis Felipe Cc: 47710@debbugs.gnu.org Received: via spool by 47710-submit@debbugs.gnu.org id=B47710.16181777518456 (code B ref 47710); Sun, 11 Apr 2021 21:50:01 +0000 Received: (at 47710) by debbugs.gnu.org; 11 Apr 2021 21:49:11 +0000 Received: from localhost ([127.0.0.1]:55998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVhx8-0002CJ-K7 for submit@debbugs.gnu.org; Sun, 11 Apr 2021 17:49:10 -0400 Received: from pelzflorian.de ([5.45.111.108]:39926 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVhx5-0002C8-VG for 47710@debbugs.gnu.org; Sun, 11 Apr 2021 17:49:09 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 3AC2236063C; Sun, 11 Apr 2021 23:49:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1618177746; bh=W/mj4OnXuLgP9cfWOSWVA6Mr26NBuarRk2jJ+Ew6WTw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=yiyCRIeIjFpcPKJthjWNRSWoIGt1R79PPutUhzkdmOxxERQPu4VU9Ylcisz2X2uRH T7/o3CQZK9edCy/rrCLix3ZKGr1L4O1diZOhlS2dGDf0a73ggV+mTnEPhDW2JrysSb /9woLYTs4nnHbMuR+aDQ9MuJRc8Xlhb7b+74Uz7E= Date: Sun, 11 Apr 2021 23:48:56 +0200 From: "pelzflorian (Florian Pelz)" Message-ID: <20210411214856.vo2uoqlsxssitzah@pelzflorian.localdomain> References: <6qPduW122TIVLNu9Rj_6WQGFxdoNCifPrJccAjS5vVqz-1ROc0Oz9Mj1jQNuueNtgXJh1VyK9NX1bUnZV0__a7E1n1_La1beKfPVxcn1Zes=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6qPduW122TIVLNu9Rj_6WQGFxdoNCifPrJccAjS5vVqz-1ROc0Oz9Mj1jQNuueNtgXJh1VyK9NX1bUnZV0__a7E1n1_La1beKfPVxcn1Zes=@protonmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618177845; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=s9ko9Z8QqqiB797Be7N/Wv3BIwxVPQxFf4F2jJETmu0=; b=tzRo7988bYW/s+eD1fPaz1iycWGKNU2SSACNX67dV/QDnYau5AHmnBj5sk3CJIEZQuxrsX +yQD/l13yd/TiA2+UlJdYsRuJHAO+rhHCLnQMvjefO8xD4SHXHKx8nzRwTV7/ydjal/A2P XDwUyLDmySeXhlBXWB1n3R3iD5P63+DIg2Hb0gfH8UzrpeO8EqNKI2FmhUvzhIwi0Jy60r qMGlVQ/XbCCe799ArLklRHF5nyu+PwWZPE5mki+rceXEBqcYR6F/XD5MrXDocOrGsZoekp vaT9uJhsGZHK/ihBG+nsymWL8XZ+dgLIwWp0yozUAJGCzYir9oNgU3ogZLlZ9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618177845; a=rsa-sha256; cv=none; b=cmffASK7bAn+6QU4UDURorTMONcIvI8cAIz+BGTgVERw2uN26JAxJ9geiMn1tN/27DpmMJ mb/ybCjasrulCTqIGhDW8q/DdmsImqqRG04ETX6uwHejCdk05SXMC99zRXqdipAX1M4Vah cP8/fzTZcGnTj4Q3YKEBQBzbt4wGViAzvN46IQm7CXzNyidV+omBxywPbxpv75VrA1Do0I +krul5bQAaOUvbRUzXBM1DyayFosuma4qms2pMa1TN/7tKN809aIVBwW8nTIC4ezE0PrDi LKceQvOjulxI9GajQnhwc0ABeOfnenqzYMMIv9itEdfPRcbzcuMRX5/PeDQjpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=yiyCRIeI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=yiyCRIeI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6CF0E14074 X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: xK2MgRYBlE7D On Sun, Apr 11, 2021 at 03:35:32PM +0000, Luis Felipe via Guix-patches via wrote: > Subject: [PATCH] website: Fix dropdown menu shrinking when clicked. > […] > This change fixes these problems by leaving the menu width as wide as > its longest item when the button is toggled. Thank you, this does the trick. (Except on Microsoft Internet Explorer, which we do not need to care about anymore.) > * apps/base/templates/components.scm (menu-dropdown): Set width to > max-content on :checked. The last line should not be indented, but it does not matter. > --- > website/apps/base/templates/components.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm > index 5440408..f521436 100644 > --- a/website/apps/base/templates/components.scm > +++ b/website/apps/base/templates/components.scm > @@ -310,7 +310,7 @@ manual. > { > min-width: 150px; > /* reset to initial values: */ > - width: auto; > + width: max-content; > height: auto; > overflow: visible; > }")) The comment /* reset to initial values: */ is misplaced now; max-content is not an initial value for width. I have moved the comment down one line in commit 81a6c477d92b2c4a206c390b97c9cb0159d79719. Regards, Florian