mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[translation] added translation for proton logs
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ export function LaunchModToogle({ onClick, active, text, icon: Icon, infoText }:
|
||||
{Icon && <Icon className="h-7 shrink-0 text-gray-800 dark:text-white" />}
|
||||
<span className="w-fit min-w-fit text-lg font-bold uppercase tracking-wide italic ">{t(text)}</span>
|
||||
{infoText && (
|
||||
<Tippy content={t(infoText)} placement="top" theme="default" delay={[400, 0]}>
|
||||
<Tippy content={t(infoText)} className="break-words" placement="bottom" delay={[400, 0]}>
|
||||
<div className="h-[25px] w-[25px] shrink-0 p-1.5 rounded-full cursor-help bg-light-main-color-1 dark:bg-main-color-3 hover:brightness-110">
|
||||
<BsmIcon className="w-full h-full" icon="info" />
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ export function LaunchModItem({ id, icon: Icon, label, description, active, visi
|
||||
const { text: t } = useTranslationV2();
|
||||
|
||||
return (
|
||||
<Tippy theme="default" placement="top" content={description}>
|
||||
<Tippy theme="default" className="break-words" placement="top" content={description}>
|
||||
<button id={id} className={cn("grow rounded-md bg-theme-1 relative flex justify-center items-center h-10 py-1 px-3", visible === false && "hidden")} onClick={e => { e.preventDefault(); e.stopPropagation(); onChange?.(!active) }}>
|
||||
<BsmCheckbox className="h-4 aspect-square z-[1] relative mr-1.5" checked={active} onChange={onChange}/>
|
||||
{Icon && <Icon className="h-full w-fit py-0.5 mr-1.5"/>}
|
||||
|
||||
@@ -71,6 +71,13 @@ export function LaunchSlide({ version }: Props) {
|
||||
: setPinnedLaunchMods(prev => prev.filter(mod => mod !== launchMod));
|
||||
|
||||
useEffect(() => {
|
||||
let protonLogsPath: string[] = [];
|
||||
if (window.electron.platform === "linux") {
|
||||
protonLogsPath = version.steam
|
||||
? [version.path, "Logs"]
|
||||
: ["BSInstances", version.name, "Logs"];
|
||||
}
|
||||
|
||||
setLaunchModItems(() => [
|
||||
{
|
||||
id: LaunchMods.OCULUS,
|
||||
@@ -126,7 +133,9 @@ export function LaunchSlide({ version }: Props) {
|
||||
{
|
||||
id: LaunchMods.PROTON_LOGS,
|
||||
label: t("pages.version-viewer.launch-mods.proton-logs"),
|
||||
description: t("pages.version-viewer.launch-mods.proton-logs-description"),
|
||||
description: t("pages.version-viewer.launch-mods.proton-logs-description", {
|
||||
versionPath: `${window.electron.path.join(...protonLogsPath)}/`
|
||||
}),
|
||||
active: activeLaunchMods.includes(LaunchMods.PROTON_LOGS),
|
||||
pinned: pinnedLaunchMods.includes(LaunchMods.PROTON_LOGS),
|
||||
visible: window.electron.platform === "linux",
|
||||
|
||||
Reference in New Issue
Block a user