@oneuptime/common 11.3.4 → 11.3.5

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.
@@ -78,7 +78,10 @@ const MasterPage: FunctionComponent<ComponentProps> = (
78
78
  <main
79
79
  id="main-content"
80
80
  tabIndex={-1}
81
- className="focus:outline-none"
81
+ // grow so the main content fills the remaining vertical space in
82
+ // the flex column, keeping the page top-aligned and pinning the
83
+ // footer to the bottom even when the content is short.
84
+ className="grow focus:outline-none"
82
85
  >
83
86
  {props.children}
84
87
  </main>
@@ -18,7 +18,11 @@ const MasterPage = (props) => {
18
18
  !props.disableMainContentWrapper && (React.createElement("a", { href: "#main-content", className: "sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-indigo-600 focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-white focus:shadow-lg" }, "Skip to main content")),
19
19
  React.createElement("div", { className: props.makeTopSectionUnstick ? "" : "sticky top-0 z-10" },
20
20
  React.createElement(TopSection, { hideHeader: props.hideHeader, className: props.topSectionClassName, header: props.header, navbar: props.navBar })),
21
- props.disableMainContentWrapper ? (props.children) : (React.createElement("main", { id: "main-content", tabIndex: -1, className: "focus:outline-none" }, props.children)),
21
+ props.disableMainContentWrapper ? (props.children) : (React.createElement("main", { id: "main-content", tabIndex: -1,
22
+ // grow so the main content fills the remaining vertical space in
23
+ // the flex column, keeping the page top-aligned and pinning the
24
+ // footer to the bottom even when the content is short.
25
+ className: "grow focus:outline-none" }, props.children)),
22
26
  props.footer && props.footer)),
23
27
  React.createElement(OfflineIndicator, { onOnlineOfflineChange: (isOnline) => {
24
28
  return setIsOnline(isOnline);
@@ -1 +1 @@
1
- {"version":3,"file":"MasterPage.js","sourceRoot":"","sources":["../../../../../UI/Components/MasterPage/MasterPage.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,UAAU,MAAM,sBAAsB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,IAAI,CACnC,2BACE,IAAI,EAAC,eAAe,EACpB,SAAS,EAAC,0MAA0M,2BAGlN,CACL;YACD,6BACE,SAAS,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;gBAEjE,oBAAC,UAAU,IACT,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,SAAS,EAAE,KAAK,CAAC,mBAAmB,EACpC,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,GACpB,CACE;YAEL,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CACjC,KAAK,CAAC,QAAQ,CACf,CAAC,CAAC,CAAC,CACF,8BACE,EAAE,EAAC,cAAc,EACjB,QAAQ,EAAE,CAAC,CAAC;gBACZ,iEAAiE;gBACjE,gEAAgE;gBAChE,uDAAuD;gBACvD,SAAS,EAAC,yBAAyB,IAElC,KAAK,CAAC,QAAQ,CACV,CACR;YAEA,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CACzB,CACP;QACD,oBAAC,gBAAgB,IACf,qBAAqB,EAAE,CAAC,QAAiB,EAAE,EAAE;gBAC3C,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC/B,CAAC,GACD,CACa,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneuptime/common",
3
- "version": "11.3.4",
3
+ "version": "11.3.5",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",