style(新年活动): 按钮文件空间宽度计算调整
This commit is contained in:
parent
26dd38419c
commit
cf8310034a
@ -1901,7 +1901,7 @@ const isTextOverflow = (text) => {
|
|||||||
document.body.appendChild(tempDiv)
|
document.body.appendChild(tempDiv)
|
||||||
|
|
||||||
// 获取容器实际可用宽度
|
// 获取容器实际可用宽度
|
||||||
const containerWidth = window.innerWidth * 0.94 * 0.5 * 0.6 // 所在容器宽度
|
const containerWidth = window.innerWidth * 0.8 * 0.5 * 0.6 // 所在容器宽度
|
||||||
const textWidth = tempDiv.getBoundingClientRect().width
|
const textWidth = tempDiv.getBoundingClientRect().width
|
||||||
|
|
||||||
document.body.removeChild(tempDiv)
|
document.body.removeChild(tempDiv)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user