Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

模型大小可以根据页面大小进行自适应吗? #111

Closed
1 task
Latias94 opened this issue May 15, 2018 · 8 comments
Closed
1 task

模型大小可以根据页面大小进行自适应吗? #111

Latias94 opened this issue May 15, 2018 · 8 comments

Comments

@Latias94
Copy link

Latias94 commented May 15, 2018

Issue

Description

Expected behavior 预期行为

不同的屏幕大小下,博客两侧的空白空间大小也不一样,17寸屏幕看博客效果不错,但是13寸屏幕看博客时,模型就会和正文重叠,能不能提供一种模型自适应的方法呢?根据窗口大小改模型大小之类的,或者页面宽度小于一个值的时候隐藏模型。

Actual behavior 实际行为

Steps to reproduce the behavior 复现步骤

博客 页面宽度缩小至模型与文本重叠。

Change the [ ] into [x] to show your acceptance.
[ ] 变为 [x] 来表示你接受了这些问题。

@EYHN @xiazeyu

@xiazeyu
Copy link
Collaborator

xiazeyu commented May 16, 2018

@EYHN
我曾经有过这个提案
然后被他否决了...我在考虑给config.height增加一个5%的之类的允许值

@Latias94
Copy link
Author

还有比较迷的就是我设置了移动端不显示,iPhone的确没显示了,但是iPad上看看板娘就出现了。

mobile:
  show: false
  scale: 0.5

@xiazeyu
Copy link
Collaborator

xiazeyu commented May 17, 2018

@Latias94
iPad被认为不算手机...

@Latias94
Copy link
Author

@xiazeyu 好吧..希望有解决自适应的办法

@xiazeyu
Copy link
Collaborator

xiazeyu commented May 17, 2018

emm
我觉得可以拓展调一下自定义显示的属性
showMobile, showTablet(iPad属于这类), showPC之类的..

@xiazeyu
Copy link
Collaborator

xiazeyu commented May 25, 2018

@Latias94

看看这样的解决方案如何

Migrated to xiazeyu/live2d-widget.js#19

@xiazeyu xiazeyu closed this as completed May 25, 2018
@Latias94
Copy link
Author

@xiazeyu 挺好的啊,做完了 at 下😀

@xiazeyu
Copy link
Collaborator

xiazeyu commented May 25, 2018

@Latias94 自己subscribe...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants