@brillout/docpress 0.10.8 → 0.10.9

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/Layout.tsx CHANGED
@@ -485,8 +485,11 @@ function NavLogo({ className }: { className: string }) {
485
485
  >
486
486
  <img
487
487
  src={pageContext.meta.logoUrl}
488
- height={iconSize}
489
- width={iconSize}
488
+ style={{
489
+ height: iconSize,
490
+ width: iconSize,
491
+ ...pageContext.config.navLogoStyle,
492
+ }}
490
493
  onContextMenu={(ev) => {
491
494
  if (!pageContext.config.pressKit) return // no /press page
492
495
  if (window.location.pathname === '/press') return
@@ -30,5 +30,6 @@ type Config = {
30
30
  sponsorGithubAccount?: string;
31
31
  navMaxWidth?: number;
32
32
  navLogoSize?: number;
33
+ navLogoStyle?: React.CSSProperties;
33
34
  navLogoTextStyle?: React.CSSProperties;
34
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
package/types/Config.ts CHANGED
@@ -32,5 +32,6 @@ type Config = {
32
32
  sponsorGithubAccount?: string
33
33
  navMaxWidth?: number
34
34
  navLogoSize?: number
35
+ navLogoStyle?: React.CSSProperties
35
36
  navLogoTextStyle?: React.CSSProperties
36
37
  }