mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-04 13:11:35 +02:00
Fix Assign Spool modal clipping on SpoolBuddy display
Added scoped CSS in SpoolBuddyAmsPage that constrains the shared AssignSpoolModal to 90vh with scrollable content and pinned header/footer, without modifying the shared component.
This commit is contained in:
@@ -740,18 +740,22 @@ export function SpoolBuddyAmsPage() {
|
||||
{assignSpoolModal && (
|
||||
<>
|
||||
<style>{`
|
||||
.sb-assign-wrap .relative.max-w-2xl {
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
[data-sb-assign] [class*="max-w-2xl"] {
|
||||
max-height: 90vh !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
}
|
||||
.sb-assign-wrap .relative.max-w-2xl > .p-4.space-y-4 {
|
||||
flex: 1 1 0;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
[data-sb-assign] [class*="max-w-2xl"] > [class*="space-y"] {
|
||||
flex: 1 1 0 !important;
|
||||
min-height: 0 !important;
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
[data-sb-assign] [class*="max-w-2xl"] > [class*="border-b"],
|
||||
[data-sb-assign] [class*="max-w-2xl"] > [class*="border-t"] {
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
`}</style>
|
||||
<div className="sb-assign-wrap">
|
||||
<div data-sb-assign="">
|
||||
<AssignSpoolModal
|
||||
isOpen={!!assignSpoolModal}
|
||||
onClose={() => {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-vlxFmu1X.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-ydLRgpbj.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CZLTApPU.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user