mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: i18n and preview fix
This commit is contained in:
@@ -378,7 +378,8 @@
|
||||
"rare": "Rare",
|
||||
"platinum": "Platinum",
|
||||
"hidden": "Hidden",
|
||||
"test_notification": "Test notification"
|
||||
"test_notification": "Test notification",
|
||||
"notification_preview": "Achievement Notification Preview"
|
||||
},
|
||||
"notifications": {
|
||||
"download_complete": "Download complete",
|
||||
|
||||
@@ -364,7 +364,8 @@
|
||||
"rare": "Rara",
|
||||
"platinum": "Platina",
|
||||
"hidden": "Oculta",
|
||||
"test_notification": "Testar notificação"
|
||||
"test_notification": "Testar notificação",
|
||||
"notification_preview": "Prévia da Notificação de Conquistas"
|
||||
},
|
||||
"notifications": {
|
||||
"download_complete": "Download concluído",
|
||||
|
||||
@@ -395,7 +395,6 @@ $margin-bottom: 28px;
|
||||
|
||||
&__chip {
|
||||
position: absolute;
|
||||
|
||||
right: 8px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
|
||||
@@ -43,6 +43,12 @@
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&__notification-preview-wrapper {
|
||||
position: relative;
|
||||
border: 1px solid globals.$muted-color;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
&__footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -152,7 +152,7 @@ export default function ThemeEditor() {
|
||||
</div>
|
||||
|
||||
<div className="theme-editor__footer">
|
||||
<CollapsedMenu title="Notification Preview">
|
||||
<CollapsedMenu title={t("notification_preview")}>
|
||||
<div className="theme-editor__notification-preview">
|
||||
<SelectField
|
||||
className="theme-editor__notification-preview__select-variation"
|
||||
@@ -184,7 +184,7 @@ export default function ThemeEditor() {
|
||||
options={achievementCustomNotificationPositionOptions}
|
||||
/>
|
||||
|
||||
<div style={{ border: "1px solid #444" }}>
|
||||
<div className="theme-editor__notification-preview-wrapper">
|
||||
<AchievementNotificationItem
|
||||
position={achievementPreview.position}
|
||||
achievement={achievementPreview.achievement}
|
||||
|
||||
Reference in New Issue
Block a user