diff --git a/src/settings/v2/SettingsMainV2.tsx b/src/settings/v2/SettingsMainV2.tsx index c1d3c1a9..e18303e0 100644 --- a/src/settings/v2/SettingsMainV2.tsx +++ b/src/settings/v2/SettingsMainV2.tsx @@ -98,12 +98,21 @@ const SettingsMainV2: React.FC = ({ plugin }) => { return (
-
-

+
+ {/* Reason: Obsidian's settings modal CSS hides plugin-rendered

+ elements (display: none) because Obsidian reserves the top-level + heading for itself. Use a div with heading-equivalent styling. */} +
Copilot Settings
- v{plugin.manifest.version} + + v{plugin.manifest.version} + {latestVersion && ( <> {hasUpdate ? ( @@ -111,12 +120,15 @@ const SettingsMainV2: React.FC = ({ plugin }) => { href="obsidian://show-plugin?id=copilot" target="_blank" rel="noopener noreferrer" - className="tw-text-xs tw-text-accent hover:tw-underline" + className="tw-text-xs tw-font-normal tw-text-accent hover:tw-underline" > (Update to v{latestVersion}) ) : ( - (up to date) + + {" "} + (up to date) + )} )} @@ -127,7 +139,7 @@ const SettingsMainV2: React.FC = ({ plugin }) => { Reset Settings
-

+

{/* Add the key prop to force re-render */}