Code Monkey home page Code Monkey logo

Comments (3)

DoodleBears avatar DoodleBears commented on August 23, 2024

这个可以通过自己编写特定元素的CSS样式文件解决

新弹幕从上方出现,实际就是将呈现的弹幕的顺序颠倒
由123(从上到下为旧弹幕新弹幕)—— 到321(从上到下为新弹幕旧弹幕

但是这样做的话,原先有的滑动效果(新弹幕进入:不是闪现插入而是滑入)就失效了。

如果想要保持新弹幕的进入效果,则需要修改blivechat的 frontend/src/components/ChatRenderer/index.vue文件

from blivechat.

HowQi avatar HowQi commented on August 23, 2024

这个可以通过自己编写特定元素的CSS样式文件解决

新弹幕从上方出现,实际就是将呈现的弹幕的顺序颠倒
由123(从上到下为旧弹幕新弹幕)—— 到321(从上到下为新弹幕旧弹幕

但是这样做的话,原先有的滑动效果(新弹幕进入:不是闪现插入而是滑入)就失效了。

如果想要保持新弹幕的进入效果,则需要修改blivechat的 frontend/src/components/ChatRenderer/index.vue文件

呜呜呜凭我浅薄的前端技能搞不懂该使用什么方式修改,方便的话能否给个提示,我该修改什么属性(或提供完整的代码参考?
另:我是不是应该在这个地方修改全部消息的属性?

/* Messages */
yt-live-chat-text-message-renderer #message,
yt-live-chat-text-message-renderer #message * {
  color: #ffffff !important;
  font-family: "Microsoft JhengHei", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE \8F6F \96C5 \9ED1 ", SimHei, Arial, sans-serif;
  font-size: 24px !important;
  line-height: 24px !important;
}

当然我仍然希望项目主为css生成器添加更多的功能——我是指这个反向弹幕的功能

from blivechat.

xfgryujk avatar xfgryujk commented on August 23, 2024

把浏览器源的高度设置小点就不会挡了

from blivechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.