Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoScript 页面的刷新按钮图标位置和动画不正确 #280

Open
cfdxkk opened this issue Dec 11, 2024 · 3 comments
Open

NoScript 页面的刷新按钮图标位置和动画不正确 #280

cfdxkk opened this issue Dec 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cfdxkk
Copy link
Member

cfdxkk commented Dec 11, 2024

如图所示,NoScript 页面的刷新按钮图标位置和动画不正确。
image

@cfdxkk cfdxkk added the bug Something isn't working label Dec 11, 2024
@otomad
Copy link
Member

otomad commented Dec 11, 2024

按钮位于右下角是模仿质感设计中的悬浮操作按钮,它实际上位于 NoScript iframe 页面之外。

至于图标,这是因为 NoScript 语境位于应用之外,暂时未能重用应用中已有的图标。
当然也可以将该图标的 SVG 整段代码复制到按钮之上,问题就在于该页面会经过 SSR,导致提供给用户的每一个静态页面都会包含这段内容,致使传输的文件变大。
我已尽量优化并减少 NoScript 在所有页面中呈现的代码,使之仅包含类似于:

<iframes src="/prior/noscript.html"></iframes><button></button>

为减少图标的影响,按钮本身仅包含一个箭头旋转的 Unicode 字符。

说个题外话,既然 JavaScript 本身都已经被禁用了,那为什么居然还可以操控按钮刷新……

@cfdxkk
Copy link
Member Author

cfdxkk commented Dec 12, 2024

@otomad 动画有问题,我录个 GIF
GIF 2024-12-12 18-19-59

@otomad
Copy link
Member

otomad commented Dec 12, 2024

可能是行高或字体的问题,不过这个应该简单调一下就好了。

@cfdxkk cfdxkk moved this to Hot fix me in KIRAKIRA☆DOUGA Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Hot fix me
Development

No branches or pull requests

3 participants