summaryrefslogtreecommitdiff
path: root/frontend/src/components/NotificationBadge.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-11-21 21:16:14 -0500
committerAAGaming <aagaming@riseup.net>2026-11-21 21:16:14 -0500
commitfc0355f55d8d36826466fc304d6ecb254d4b7ca1 (patch)
tree6497c5c260e6f032ab468dce0f361f64d003af12 /frontend/src/components/NotificationBadge.tsx
parent02db20f846857374b9b5f1e7dbd475befdf47b71 (diff)
parentf8682eb26fb23c9bed3c4a509d2b90eb582805f3 (diff)
downloaddecky-loader-fc0355f55d8d36826466fc304d6ecb254d4b7ca1.tar.gz
decky-loader-fc0355f55d8d36826466fc304d6ecb254d4b7ca1.zip
Merge remote-tracking branch 'origin/v4-dev' into aa/esmodule-steam
Diffstat (limited to 'frontend/src/components/NotificationBadge.tsx')
-rw-r--r--frontend/src/components/NotificationBadge.tsx55
1 files changed, 42 insertions, 13 deletions
diff --git a/frontend/src/components/NotificationBadge.tsx b/frontend/src/components/NotificationBadge.tsx
index 3c5d8215..1d14d576 100644
--- a/frontend/src/components/NotificationBadge.tsx
+++ b/frontend/src/components/NotificationBadge.tsx
@@ -2,23 +2,52 @@ import { CSSProperties, FunctionComponent } from 'react';
interface NotificationBadgeProps {
show?: boolean;
+ vr?: boolean;
style?: CSSProperties;
}
-const NotificationBadge: FunctionComponent<NotificationBadgeProps> = ({ show, style }) => {
+const NotificationBadge: FunctionComponent<NotificationBadgeProps> = ({ show, style, vr }) => {
return show ? (
- <div
- style={{
- position: 'absolute',
- top: '8px',
- right: '8px',
- height: '10px',
- width: '10px',
- background: 'orange',
- borderRadius: '50%',
- ...style,
- }}
- />
+ vr ? (
+ // whoever made transform:scale completely break absolute positioning goes straight to super turbo hell this took me an hour
+ <div
+ style={{
+ top: 0,
+ left: 0,
+ marginLeft: 'auto',
+ width: 0,
+ height: 0,
+ overflow: 'visible',
+ transform: 'translate(0px, 0px)',
+ }}
+ >
+ <div
+ style={{
+ position: 'fixed',
+ top: '-18px',
+ right: '-6px',
+ width: '10px',
+ height: '10px',
+ background: 'orange',
+ borderRadius: '50%',
+ ...style,
+ }}
+ />
+ </div>
+ ) : (
+ <div
+ style={{
+ position: 'absolute',
+ top: '8px',
+ right: '8px',
+ height: '10px',
+ width: '10px',
+ background: 'orange',
+ borderRadius: '50%',
+ ...style,
+ }}
+ />
+ )
) : null;
};