feat: mobile tags adapt
This commit is contained in:
@@ -60,7 +60,7 @@ const ModalTags: FunctionComponent<ModalTagsProps> = ({ isOpen, setIsOpen, onClo
|
|||||||
{value?.second || "Тема"}
|
{value?.second || "Тема"}
|
||||||
</Button>
|
</Button>
|
||||||
{showFirstTags && (
|
{showFirstTags && (
|
||||||
<div class="absolute top-0 left-full ml-5 flex h-fit w-[18rem] flex-col items-center rounded-[4rem] bg-white px-8 py-4 text-xs">
|
<div class="absolute top-full left-0 mt-3 ml-2 flex h-fit w-[18rem] flex-col items-center rounded-[4rem] bg-white px-8 py-4 text-xs md:top-0 md:left-full md:mt-0 md:ml-5">
|
||||||
<div class="flex h-fit max-h-[45vh] w-full flex-col gap-3 overflow-y-auto">
|
<div class="flex h-fit max-h-[45vh] w-full flex-col gap-3 overflow-y-auto">
|
||||||
{tagsList?.first.map((tag) => (
|
{tagsList?.first.map((tag) => (
|
||||||
<div
|
<div
|
||||||
@@ -88,7 +88,7 @@ const ModalTags: FunctionComponent<ModalTagsProps> = ({ isOpen, setIsOpen, onClo
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{showSecondTags && (
|
{showSecondTags && (
|
||||||
<div class="absolute top-0 left-full ml-5 flex h-fit w-[18rem] rounded-[4rem] bg-white px-8 py-4 text-xs">
|
<div class="absolute top-full left-0 mt-3 ml-2 flex h-fit w-[18rem] flex-col items-center rounded-[4rem] bg-white px-8 py-4 text-xs md:top-0 md:left-full md:mt-0 md:ml-5">
|
||||||
<div class="flex h-fit max-h-[45vh] w-full flex-col gap-3 overflow-y-auto">
|
<div class="flex h-fit max-h-[45vh] w-full flex-col gap-3 overflow-y-auto">
|
||||||
{tagsList?.second.map((tag) => (
|
{tagsList?.second.map((tag) => (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user