Comments (2)
比较倾向第二个选项,估计工作量在撸对应的 Parser 的正则表达式上
或许可以根据渲染后的元素高度来决定是否增加折叠?
from flarum-0x.
根据渲染后的元素高度来决定是否增加折叠
这个高度的选取可能也是众口难调,并且考虑部分浏览器和插件提供锁定字体或字号的功能,简单计算的高度不一定对,可能需要先渲染出一行获得行高,再决定超过多少行折叠~
不过如果是那种透明渐变,下方一行文字类似“点击展开更多”的效果,可能也还不错,而且不用考虑渲染行高了~
from flarum-0x.
Related Issues (20)
- 帖子的 reaction 支持 HOT 2
- 邮件通过后台队列异步发送 HOT 3
- 阻止用户重复发送相同帖子 HOT 1
- 发布回复后,总楼层数未刷新
- 更好的分享体验
- 帖子内联图片的抖动问题 HOT 2
- Feed output with pure numbers as guid HOT 1
- flarum-pwa push 通知失败导致的报错 HOT 2
- 帖子历史记录 diff 部分字符展示不正常
- LaTeX行内公式格式问题 HOT 1
- 升级 flarum v1.3 版本 HOT 1
- jsdelivr.net 的 emoji 表情图片替换 HOT 4
- Optimizing the DevContainer Build Process
- CORS cache error after switch avatar storage to Cloudflare R2 HOT 1
- Show backlinks in a post HOT 1
- webhooks CJK link issue
- Use composer override instead of generate a patch for PHP class
- Upgrade to flarum v1.8
- $转义问题 HOT 1
- Install of flarum-lang/chinese-simplified failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flarum-0x.