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

显示视频投稿时间支持转义字符 #4167

Merged
merged 2 commits into from
May 8, 2023
Merged

显示视频投稿时间支持转义字符 #4167

merged 2 commits into from
May 8, 2023

Conversation

wisokey
Copy link
Contributor

@wisokey wisokey commented Apr 27, 2023

更新内容

  1. 新增了三个常用转义字符用于文本格式 显示视频投稿时间位置优化 #4160
  2. 为了支持多行更改了部分css

@wisokey
Copy link
Contributor Author

wisokey commented Apr 27, 2023

更改后的推荐视频卡片样式

旧版:
image
新版:
image

@the1812
Copy link
Owner

the1812 commented Apr 30, 2023

新版这个位置不对吧, 怎么都挤在 UP 主那块了

@wisokey
Copy link
Contributor Author

wisokey commented Apr 30, 2023

新版这个位置不对吧, 怎么都挤在 UP 主那块了

实际上旧版和新版的实现逻辑是一样的,都是是在up主那块使用了换行符

@the1812
Copy link
Owner

the1812 commented Apr 30, 2023

那高度应该改成自动的, 现在这个是一行的高度挤了两行字

@wisokey
Copy link
Contributor Author

wisokey commented Apr 30, 2023

旧版和新版的高度都做了一个自适应,毕竟格式是用户自己配,没有限制能使用几个换行符。新版里两行的情况下是32像素,一行是16像素,只是那个up图标本身应该是做了一个剧中的css,我没有改这个,不过应该没必要改吧。

@the1812
Copy link
Owner

the1812 commented Apr 30, 2023

我看了下, 是外面的 .video-page-card-small .card-box .info .upname 写死了高度 20px, 改成 auto 后才正常
image

@wisokey
Copy link
Contributor Author

wisokey commented Apr 30, 2023

我看了下, 是外面的 .video-page-card-small .card-box .info .upname 写死了高度 20px, 改成 auto 后才正常 image

之前没注意,感谢指出

@wisokey
Copy link
Contributor Author

wisokey commented Apr 30, 2023

旧版:
image
新版:
image
改变样式后的样子

@the1812 the1812 merged commit fc6e01a into the1812:preview-features May 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants