fix control width

This commit is contained in:
Anton Tranelis 2024-07-29 22:06:12 +02:00
parent c5f426e943
commit 17dc55e1bb
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export function FilterControl() {
<div className="tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit">
{
open ?
<div className="tw-card-body tw-pr-4 tw-p-2 tw-w-fit tw-transition-all tw-duration-300">
<div className="tw-card-body tw-pr-4 tw-min-w-[8rem] tw-p-2 tw-w-fit tw-transition-all tw-duration-300">
<label className="tw-btn tw-btn-sm tw-rounded-2xl tw-btn-circle tw-btn-ghost hover:tw-bg-transparent tw-absolute tw-right-0 tw-top-0 tw-text-gray-600" onClick={() => {
setOpen(false)
}}>

View File

@ -20,7 +20,7 @@ export function LayerControl() {
<div className="tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit">
{
open ?
<div className="tw-card-body tw-pr-4 tw-p-2 tw-w-36 tw-transition-all tw-duration-300">
<div className="tw-card-body tw-pr-4 tw-min-w-[8rem] tw-p-2 tw-transition-all tw-w-fit tw-duration-300">
<label className="tw-btn tw-btn-sm tw-rounded-2xl tw-btn-circle tw-btn-ghost hover:tw-bg-transparent tw-absolute tw-right-0 tw-top-0 tw-text-gray-600" onClick={() => {
setOpen(false)
}}>