Replies: 1 comment
-
|
This is likely a URL encoding issue with non-ASCII characters in the story name. The "Open canvas in new tab" button constructs a URL using the story ID, and when the story has a Chinese name like A few things to check:
If it's confirmed, this would be worth filing as a bug report (not a Help discussion) since Storybook should be encoding story IDs properly regardless of the characters used. The fix on Storybook's side would be to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Describe the bug
在 Storybook 的 Docs 页面中,点击右上角的 "Open canvas in new tab" 图标(带箭头的图标)无法在新窗口中打开链接。这个问题在 Edge 浏览器中特别明显,很可能是由于 iframe 的安全策略限制导致的。
On the Storybook Docs page, clicking the "Open canvas in new tab" icon (the arrow icon) in the top right corner fails to open the link in a new window. This issue is particularly noticeable in the Edge browser, likely due to iframe security policy restrictions.
To Reproduce
@storybook/addon-svelte-csf的 SvelteKit 项目name: "成功消息")npm run storybookSystem
│
│
│ Storybook Environment Info:
│
│ System:
│ OS: Windows 11 10.0.26200
│ CPU: (20) x64 Intel(R) Core(TM) i5-14600KF
│ Binaries:
│ Node: 22.15.0 - D:\Program Files\nodejs\node.EXE
│ npm: 10.9.2 - D:\Program Files\nodejs\npm.CMD
│ pnpm: 10.33.0 - C:\Users\admin\AppData\Roaming\npm\pnpm.CMD <----- active
│ Browsers:
│ Edge: Chromium (141.0.3537.71)
│ npmPackages:
│ @storybook/addon-a11y: ^10.3.6 => 10.3.6
│ @storybook/addon-docs: ^10.3.6 => 10.3.6
│ @storybook/addon-svelte-csf: ^5.1.2 => 5.1.2
│ @storybook/addon-vitest: ^10.3.6 => 10.3.6
│ @storybook/sveltekit: ^10.3.6 => 10.3.6
│ eslint-plugin-storybook: ^10.3.6 => 10.3.6
│ storybook: ^10.3.6 => 10.3.6
Additional information
Additional context
相关配置文件
.storybook/main.ts:Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions