chore: adjust ui

This commit is contained in:
Nathan 2025-04-15 22:35:06 +08:00
parent 846172a709
commit 5c3e81e6dc
4 changed files with 3 additions and 21 deletions

View file

@ -125,21 +125,4 @@ class LocalAiPluginState with _$LocalAiPluginState {
orElse: () => false,
);
}
bool get showSettings {
return maybeWhen(
ready: (isEnabled, _, runningState, lackOfResource) {
final isConnecting = [
RunningStatePB.Connecting,
RunningStatePB.Connected,
].contains(runningState);
final resourcesReadyOrMissingModel = lackOfResource == null ||
lackOfResource.resourceType == LackOfAIResourceTypePB.MissingModel;
return !isConnecting && resourcesReadyOrMissingModel;
},
orElse: () => false,
);
}
}

View file

@ -67,7 +67,7 @@ class SearchSummaryPreview extends StatelessWidget {
Opacity(
opacity: 0.5,
child: FlowyText(
LocaleKeys.commandPalette_aiOverviewHighlights.tr(),
LocaleKeys.commandPalette_aiOverviewMoreDetails.tr(),
fontSize: 12,
),
),
@ -86,8 +86,6 @@ class SearchSummaryPreview extends StatelessWidget {
// Sources
const VSpace(6),
...summary.sources.map((e) => SearchSummarySource(source: e)),
// Highlights
],
);
}

View file

@ -62,6 +62,7 @@ class _SettingItemWidget extends StatelessWidget {
SizedBox(
height: 32,
child: FlowyTextField(
autoFocus: false,
hintText: item.hintText,
text: item.content,
onChanged: (content) {

View file

@ -2699,7 +2699,7 @@
"bestMatches": "Best matches",
"aiOverview": "AI overview",
"aiOverviewSource": "Reference sources",
"aiOverviewHighlights": "Highlights",
"aiOverviewMoreDetails": "More details",
"pagePreview": "Content preview",
"clickToOpenPage": "Click to open page",
"recentHistory": "Recent history",