feat: renaming class names to BEM

This commit is contained in:
Chubby Granny Chaser
2025-05-17 22:59:38 +01:00
parent 1247a105a0
commit 5ae67a3dc7
9 changed files with 49 additions and 49 deletions

View File

@@ -281,7 +281,7 @@ export class AchievementWatcherManager {
totalNewGamesWithAchievements,
totalNewAchievements,
userPreferences.achievementCustomNotificationPosition ??
"top_left"
"top-left"
);
} else {
publishCombinedNewAchievementNotification(

View File

@@ -128,7 +128,7 @@ export const mergeAchievements = async (
if (userPreferences?.achievementCustomNotificationsEnabled !== false) {
WindowManager.notificationWindow?.webContents.send(
"on-achievement-unlocked",
userPreferences.achievementCustomNotificationPosition ?? "top_left",
userPreferences.achievementCustomNotificationPosition ?? "top-left",
achievementsInfo
);
} else {

View File

@@ -289,35 +289,35 @@ export class WindowManager {
const display = screen.getPrimaryDisplay();
const { width, height } = display.workAreaSize;
if (position === "bottom_center") {
if (position === "bottom-center") {
return {
x: (width - this.NOTIFICATION_WINDOW_WIDTH) / 2,
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
};
}
if (position === "bottom_right") {
if (position === "bottom-right") {
return {
x: width - this.NOTIFICATION_WINDOW_WIDTH,
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
};
}
if (position === "top_center") {
if (position === "top-center") {
return {
x: (width - this.NOTIFICATION_WINDOW_WIDTH) / 2,
y: 0,
};
}
if (position === "bottom_left") {
if (position === "bottom-left") {
return {
x: 0,
y: height - this.NOTIFICATION_WINDOW_HEIGHT,
};
}
if (position === "top_right") {
if (position === "top-right") {
return {
x: width - this.NOTIFICATION_WINDOW_WIDTH,
y: 0,
@@ -375,7 +375,7 @@ export class WindowManager {
setTimeout(() => {
this.notificationWindow?.webContents.send(
"on-achievement-unlocked",
userPreferences.achievementCustomNotificationPosition ?? "top_left",
userPreferences.achievementCustomNotificationPosition ?? "top-left",
[generateAchievementCustomNotificationTest(t, language)]
);
}, 1000);