Skip to content

Commit

Permalink
Improve drop down layout when crowded
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Dec 17, 2024
1 parent c4ef4c9 commit e3e7b35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions frontend/pages/admin/app-picks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ const ComboboxItem = ({
)}
{item.numberOfTimesAppOfTheWeek > 0 && (
<span
className={clsx("flex truncate text-sm opacity-70 justify-between")}
className={clsx(
"flex truncate gap-6 text-sm opacity-70 justify-between",
)}
>
Last picked
<strong>
Expand All @@ -532,7 +534,9 @@ const ComboboxItem = ({
)}
{item.numberOfTimesAppOfTheWeek > 0 && (
<span
className={clsx("flex truncate text-sm opacity-70 justify-between")}
className={clsx(
"flex truncate gap-6 text-sm opacity-70 justify-between",
)}
>
Times picked <strong>{item.numberOfTimesAppOfTheWeek}</strong>
</span>
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/components/app-picks/AppOfTheDayChanger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ const ComboboxItem = ({
)}
{item.numberOfTimesAppOfTheDay > 0 && (
<span
className={clsx("flex truncate text-sm opacity-70 justify-between")}
className={clsx(
"flex truncate gap-6 text-sm opacity-70 justify-between",
)}
>
Last picked
<strong>
Expand All @@ -139,7 +141,9 @@ const ComboboxItem = ({
)}
{item.numberOfTimesAppOfTheDay > 0 && (
<span
className={clsx("flex truncate text-sm opacity-70 justify-between")}
className={clsx(
"flex truncate gap-6 text-sm opacity-70 justify-between",
)}
>
Times picked <strong>{item.numberOfTimesAppOfTheDay}</strong>
</span>
Expand Down

0 comments on commit e3e7b35

Please sign in to comment.