Adjust cat glow position in animeCat.js
This commit is contained in:
10
animeCat.js
10
animeCat.js
@@ -220,12 +220,12 @@ animateCatGlow(commitCount) {
|
|||||||
const contRect = this.container.getBoundingClientRect();
|
const contRect = this.container.getBoundingClientRect();
|
||||||
|
|
||||||
// Position: leicht rechts, minimal nach oben (bei Bedarf feintunen)
|
// Position: leicht rechts, minimal nach oben (bei Bedarf feintunen)
|
||||||
const left = (catRect.right - contRect.left) + 16;
|
const left = (catRect.right - contRect.left) + 2; // vorher +12, jetzt +2
|
||||||
const bottom = (contRect.bottom - catRect.bottom) + 18;
|
const bottom = (contRect.bottom - catRect.bottom) - 2; // vorher +8, jetzt -2
|
||||||
Object.assign(this.bubble.style, {
|
Object.assign(this.bubble.style, {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
left: `${left}px`,
|
left: `${left}px`,
|
||||||
bottom: `${bottom}px`,
|
bottom: `${bottom}px`,
|
||||||
marginLeft: '0',
|
marginLeft: '0',
|
||||||
marginBottom: '0'
|
marginBottom: '0'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user