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