Skip to content

Commit

Permalink
Merge pull request #66 from kthchew/fix/scroll-notif
Browse files Browse the repository at this point in the history
Fix unwanted scrolling in gain/view notifications
  • Loading branch information
MaximilianMeiler authored Apr 24, 2024
2 parents 417dfff + 7afeb0d commit b678ab0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Frontend/src/CatGainNotification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function CatGainNotification({cat, closeNotif}) {
<div className="catChangeNotifCats">
<p style={{color: "black"}}>Name: {cat.name}</p>
<p style={{color: "black"}}>Rarity: <span style={{color: rarityColor}}>{rarityLabel}</span></p>
<div className='catLarge' style={{bottom: "50%", left: "70%", zIndex: 100000}}>
<div className='catLarge' style={{bottom: "30%", left: "75%", zIndex: 100000}}>
<img className='catPeltLarge'
src={`pelts/${cat.pattern}.jpg`}
style={{
Expand Down
2 changes: 1 addition & 1 deletion Frontend/src/CatView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function CatViewNotification({cat, closeNotif}) {
<div className="catChangeNotifCats">
<p style={{color: "black"}}>Name: {cat.name}</p>
<p style={{color: "black"}}>Rarity: <span style={{color: rarityColor}}>{rarityLabel}</span></p>
<div className='catLarge' style={{bottom: "50%", left: "70%", zIndex: 100000}}>
<div className='catLarge' style={{bottom: "30%", left: "75%", zIndex: 100000}}>
<img className='catPeltLarge'
src={`pelts/${cat.pattern}.jpg`}
style={{
Expand Down
3 changes: 3 additions & 0 deletions Frontend/src/css/CatChangeNotification.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.catLarge {
position: absolute;
image-rendering: pixelated;
height: 64px;
width: 64px;
overflow: hidden;
scale: 3;
}

Expand Down

0 comments on commit b678ab0

Please sign in to comment.