fix(core): meeting settings issues (#12226)

fix AF-2606

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - The "meetings" settings panel is now only visible on macOS when using the Electron build.
  - The "Meetings Settings..." menu item in the recording menu appears only when recording functionality is available.

- **Style**
  - Improved the subtitle formatting in the meetings settings panel for clearer visual separation and enhanced readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
pengx17
2025-05-13 06:52:08 +00:00
parent 0d518adc5b
commit 9d116426f8
3 changed files with 24 additions and 20 deletions

View File

@@ -95,13 +95,15 @@ export const useGeneralSettingList = (): GeneralSettingList => {
});
}
settings.push({
key: 'meetings',
title: t['com.affine.settings.meetings'](),
icon: <MeetingIcon />,
testId: 'meetings-panel-trigger',
beta: !meetingSettings?.enabled,
});
if (environment.isMacOs && BUILD_CONFIG.isElectron) {
settings.push({
key: 'meetings',
title: t['com.affine.settings.meetings'](),
icon: <MeetingIcon />,
testId: 'meetings-panel-trigger',
beta: !meetingSettings?.enabled,
});
}
if (hasPaymentFeature) {
settings.splice(4, 0, {

View File

@@ -201,16 +201,16 @@ const MeetingsSettingsMain = () => {
beta
title={t['com.affine.settings.meetings']()}
subtitle={
t['com.affine.settings.meetings.setting.prompt']() +
'\n' +
(
<>
{t['com.affine.settings.meetings.setting.prompt']()}
<br />
<Trans
i18nKey="com.affine.settings.meetings.setting.prompt.2"
components={{
strong: <strong />,
}}
/>
)
</>
}
/>