Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix : groups dropdown suggestions shift layout (#10163) (#10210)
Browse files Browse the repository at this point in the history
* FIX : [BUG] groups field dropdown shift layout while suggestions are shown #10163

* Fixed the Issue The group drop-down suggestions are not visible properly

* Fixed the Issue The group drop-down suggestions are not visible properly

---------

Co-authored-by: Priyanshu kumawat <88786642+kumarsonsoff3@users.noreply.github.com>
  • Loading branch information
tix980 and kumarsonsoff3 committed Mar 2, 2024
1 parent 6eb5ff6 commit d6f016b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/GroupLinkSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function GroupLinkSearch({ selectedGroup, handleGroupSelection, groups }) {
/>
<Combobox.Options
className={
"border-2 rounded border-tertiary-medium dark:bg-primary-medium"
"absolute z-10 w-full border-2 rounded border-tertiary-medium dark:bg-primary-medium"
}
>
{filteredGroup.length > 0 &&
Expand All @@ -45,7 +45,7 @@ function GroupLinkSearch({ selectedGroup, handleGroupSelection, groups }) {
key={group}
value={group}
className={
"px-3 py-2 flex items-center dark:hover:bg-tertiary-medium/60 hover:bg-secondary-low/40"
"px-3 py-2 flex items-center bg-white dark:bg-primary-medium dark:hover:bg-tertiary-medium/60 hover:bg-secondary-low/100"
}
>
{group !== "" && <span>{group}</span>}
Expand Down
2 changes: 1 addition & 1 deletion pages/account/manage/link/[[...data]].js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function ManageLink({ BASE_URL, username, link, groups }) {
</div>

<div className="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-t sm:border-primary-low-medium/30 sm:pt-5">
<div className="mt-1 sm:col-span-2 sm:mt-0">
<div className="relative mt-1 sm:col-span-2 sm:mt-0">
<GroupLinkSearch
groups={groups}
handleGroupSelection={setGroup}
Expand Down

0 comments on commit d6f016b

Please sign in to comment.