From af054433dd93b98ff948bdb44470b1764e33da3f Mon Sep 17 00:00:00 2001 From: David Aerne Date: Thu, 7 Dec 2023 15:42:57 +0100 Subject: [PATCH 1/2] add a CSS comment to the c-list__item--pin class --- src/frontend/src/styles/main.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/src/styles/main.css b/src/frontend/src/styles/main.css index b9139284ff..8d748fae3c 100644 --- a/src/frontend/src/styles/main.css +++ b/src/frontend/src/styles/main.css @@ -1772,6 +1772,12 @@ by all browsers (FF is missing) */ gap: var(--rs-input-inline); } +/* +* The width of the digits is the result of the gap we want between them and the +* number of digits we want to display. +* 100% is the full width of the container, so we devide it by the number of digits +* and subtract the gap we want between them. +*/ .c-list__item--pin { flex-basis: calc(100% / var(--pinDigits) - var(--rs-input-inline)); } From 2f31be2c3653466cc403fb208b9c3e63ee75af2a Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Mon, 8 Jan 2024 15:06:18 +0100 Subject: [PATCH 2/2] Update src/frontend/src/styles/main.css --- src/frontend/src/styles/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/styles/main.css b/src/frontend/src/styles/main.css index 8d748fae3c..76d9ce4498 100644 --- a/src/frontend/src/styles/main.css +++ b/src/frontend/src/styles/main.css @@ -1775,7 +1775,7 @@ by all browsers (FF is missing) */ /* * The width of the digits is the result of the gap we want between them and the * number of digits we want to display. -* 100% is the full width of the container, so we devide it by the number of digits +* 100% is the full width of the container, so we divide it by the number of digits * and subtract the gap we want between them. */ .c-list__item--pin {