Skip to content

Commit

Permalink
[web] Reorganize information at TimezoneSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Dec 21, 2023
1 parent ddcb94e commit a1d0c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions web/src/assets/styles/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,14 @@ ul[data-of="agama/keymaps"] {
ul[data-of="agama/timezones"] {
li {
display: grid;
grid-template-columns: 1fr 2fr 1fr 1fr;
grid-template-columns: 2fr 1fr 1fr;

> :last-child {
grid-column: 1 / -1;
font-size: 80%;
}

> :nth-child(4) {
> :nth-child(3) {
color: var(--color-gray-dimmed);
text-align: end;
}
Expand Down
4 changes: 1 addition & 3 deletions web/src/components/l10n/TimezoneSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@ const timezoneDetails = (timezone) => {
* @param {Date} props.date - Date to show a time.
*/
const TimezoneItem = ({ timezone, date }) => {
const [part1, ...restParts] = timezone.parts;
const time = timezoneTime(timezone.id, { date }) || "";

return (
<>
<div>{part1}</div>
<div>{restParts.join('-')}</div>
<div>{timezone.parts.join('-')}</div>
<div>{timezone.country}</div>
<div>{time || ""}</div>
<div>{timezone.details}</div>
Expand Down

0 comments on commit a1d0c0d

Please sign in to comment.