mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-18 20:05:05 -04:00
chore: adjust ui
This commit is contained in:
parent
846172a709
commit
5c3e81e6dc
4 changed files with 3 additions and 21 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ class _SettingItemWidget extends StatelessWidget {
|
|||
SizedBox(
|
||||
height: 32,
|
||||
child: FlowyTextField(
|
||||
autoFocus: false,
|
||||
hintText: item.hintText,
|
||||
text: item.content,
|
||||
onChanged: (content) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue