mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
adjust y axis width
This commit is contained in:
@@ -192,7 +192,7 @@ export function useYaxisWidth(chartRef: React.RefObject<HTMLDivElement>) {
|
|||||||
if (yAxisElement) {
|
if (yAxisElement) {
|
||||||
// console.log('yAxisElement', yAxisElement)
|
// console.log('yAxisElement', yAxisElement)
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
setYAxisWidth(yAxisElement.getBoundingClientRect().width + 22)
|
setYAxisWidth(yAxisElement.getBoundingClientRect().width + 24)
|
||||||
}
|
}
|
||||||
}, 16)
|
}, 16)
|
||||||
return () => clearInterval(interval)
|
return () => clearInterval(interval)
|
||||||
|
Reference in New Issue
Block a user