diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-18 18:27:37 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-18 18:27:37 +0800 |
| commit | 6c3e6e0e3f1a96e92299747d2ec5f552908728cb (patch) | |
| tree | c247735c101dd5921300069ee1b89e35d73d6c05 /src/shadow.js | |
| parent | 0fb31eca7348356f74ce38b63044bd0a838f9659 (diff) | |
style: consistent unit assignment
Diffstat (limited to 'src/shadow.js')
| -rw-r--r-- | src/shadow.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shadow.js b/src/shadow.js index fd3c2f3..4e06263 100644 --- a/src/shadow.js +++ b/src/shadow.js @@ -34,10 +34,10 @@ export default class Shadow { shadow.classList.add('libra-shadow'); // style and position shadow image - shadow.style.top = `${this.originalPosition.top}px`; - shadow.style.left = `${this.originalPosition.left}px`; - shadow.style.width = `${this.originalPosition.width}px`; - shadow.style.height = `${this.originalPosition.height}px`; + shadow.style.top = this.originalPosition.top + 'px'; + shadow.style.left = this.originalPosition.left + 'px'; + shadow.style.width = this.originalPosition.width + 'px'; + shadow.style.height = this.originalPosition.height + 'px'; // Set transition duration from config shadow.style.transitionDuration = config.transitionDuration + 'ms'; |
