Merge pull request #4207 from ZiuChen/fix/badge-helper-position

fix: 修正直播间粉丝勋章定位溢出视口问题
This commit is contained in:
Grant Howard 2023-05-20 16:54:15 +08:00 committed by GitHub
commit 14af39d61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ export default Vue.extend({
},
methods: {
updateColumnsCount() {
const maxColumnCount = 6
const maxColumnCount = 15
const columnLength = 12
const element = this.$el as HTMLElement
const medalColumns = Math.min(Math.ceil(this.medalList.length / columnLength), maxColumnCount)