@medalsocial/meda 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shell/shell-main.js +6 -1
- package/package.json +1 -1
package/dist/shell/shell-main.js
CHANGED
|
@@ -7,5 +7,10 @@ const layoutClass = {
|
|
|
7
7
|
fullbleed: 'w-full',
|
|
8
8
|
};
|
|
9
9
|
export function ShellMain({ layout = 'workspace', className, children }) {
|
|
10
|
-
return (_jsx("main", { "data-meda-shell-main-layout": layout, className: cn(
|
|
10
|
+
return (_jsx("main", { "data-meda-shell-main-layout": layout, className: cn(
|
|
11
|
+
// `flex flex-col` is required so full-height content regions (pages that
|
|
12
|
+
// use `flex-1` to fill the main area) get a flex-column parent with a
|
|
13
|
+
// definite height. Without it, those regions collapse and clip their
|
|
14
|
+
// content (e.g. the Posts list rendered but stayed blank).
|
|
15
|
+
'flex flex-col flex-1 min-w-0 overflow-y-auto bg-shell-main', layoutClass[layout], className), children: children }));
|
|
11
16
|
}
|