mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 06:24:25 +01:00
fix: modal
This commit is contained in:
@@ -13,7 +13,7 @@ export type BasicModalProps = {
|
|||||||
const BasicModal: Component<BasicModalProps> = (props) => {
|
const BasicModal: Component<BasicModalProps> = (props) => {
|
||||||
return (
|
return (
|
||||||
<Modal onClose={() => props.onClose?.()}>
|
<Modal onClose={() => props.onClose?.()}>
|
||||||
<div class="max-h-[100vh] w-[640px] max-w-full">
|
<div class="w-[640px] max-w-full">
|
||||||
<button
|
<button
|
||||||
class="w-full pt-1 text-start text-stone-800"
|
class="w-full pt-1 text-start text-stone-800"
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
@@ -25,7 +25,7 @@ const BasicModal: Component<BasicModalProps> = (props) => {
|
|||||||
</Show>
|
</Show>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<div class="flex max-h-full flex-col overflow-y-scroll rounded-xl border bg-white text-stone-700 shadow-lg">
|
<div class="flex max-h-[90vh] flex-col overflow-y-scroll rounded-xl border bg-white text-stone-700 shadow-lg">
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user