@dfosco/storyboard 0.6.5 → 0.6.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfosco/storyboard",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Storyboard prototyping framework — core engine, React integration, and canvas",
@@ -1131,6 +1131,8 @@ function WorkspaceImpl({
1131
1131
  basePath,
1132
1132
  title = 'Storyboard',
1133
1133
  subtitle,
1134
+ logo,
1135
+ logoIcon = 'iconoir/key-command',
1134
1136
  showAllArtifacts = false,
1135
1137
  showPrototypes = true,
1136
1138
  showCanvases = true,
@@ -1400,13 +1402,9 @@ function WorkspaceImpl({
1400
1402
  >
1401
1403
  {sidebarOpen ? <XIcon size={18} /> : <ThreeBarsIcon size={18} />}
1402
1404
  </button>
1403
- <img
1404
- src={`${basePath || '/'}favicon.svg`}
1405
- alt=""
1406
- width={48}
1407
- height={48}
1408
- className={css.logo}
1409
- />
1405
+ {logo
1406
+ ? <div className={`${css.logo} smooth-corners`}>{logo}</div>
1407
+ : <div className={`${css.logo} smooth-corners`}><Icon name={logoIcon} size={22} color="#fff" /></div>}
1410
1408
  <div>
1411
1409
  <div className={css.appName}>{title}</div>
1412
1410
  {subtitle && <div className={css.appSubtitle}>{subtitle}</div>}
@@ -30,8 +30,13 @@
30
30
  .logo {
31
31
  width: 48px;
32
32
  height: 48px;
33
+ background: var(--bgColor-emphasis, #313131);
34
+ border-radius: 8px;
33
35
  transform: rotate(-1deg);
34
- display: block;
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ color: var(--fgColor-onEmphasis, #fff);
35
40
  flex-shrink: 0;
36
41
  }
37
42