mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-25 20:53:50 +00:00
Fixed different widths of the tiles on the assistants page (#1234)
This commit is contained in:
1 parent
deb75c8dd1
commit
fae3ceb840
7 files changed
+20
-5
No files matched your search
@@ -96,7 +96,7 @@ public partial class AssistantBlock<TSettings> : MSGComponentBase, IAssistantCat
|
||||
false => this.ColorTheme.GetCurrentPalette(this.SettingsManager).GrayDefault,
|
||||
};
|
||||
|
||||
private string BlockStyle => $"border-width: 3px; border-color: {this.BorderColor}; border-radius: 12px; border-style: solid; max-width: 20em;";
|
||||
private string BlockStyle => $"border-width: 3px; border-color: {this.BorderColor}; border-radius: 12px; border-style: solid; width: 20em;";
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsVisible => this.SettingsManager.IsAssistantVisible(this.Component, assistantName: this.Name, requiredPreviewFeature: this.RequiredPreviewFeature);
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
Link="@this.LaunchLink"
|
||||
OnClick="@this.StartAsync">
|
||||
<AdditionalActions>
|
||||
<DirectChatLauncherSettingsAction Plugin="@this.Plugin" />
|
||||
<DirectChatLauncherSettingsAction Plugin="@this.Plugin" Compact="@true" />
|
||||
@if (this.AvailablePlugin is not null)
|
||||
{
|
||||
<PluginDeleteAction Plugin="@this.AvailablePlugin" />
|
||||
<PluginDeleteAction Plugin="@this.AvailablePlugin" Compact="@true" />
|
||||
}
|
||||
</AdditionalActions>
|
||||
<SecurityBadge>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<MudIconButton Icon="@AppIcons.LAUNCHER_SETTINGS"
|
||||
Color="Color.Default"
|
||||
Variant="Variant.Text"
|
||||
Size="Size.Medium"
|
||||
Size="@(this.Compact ? Size.Small : Size.Medium)"
|
||||
Disabled="@this.isEditing"
|
||||
OnClick="@this.OpenSettingsDialogAsync"/>
|
||||
</MudTooltip>
|
||||
|
||||
@@ -20,6 +20,13 @@ public partial class DirectChatLauncherSettingsAction : MSGComponentBase
|
||||
[Parameter, EditorRequired]
|
||||
public PluginAssistants Plugin { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Shows the action as a small button. A tile of the assistants page needs it: next to a button
|
||||
/// of the usual size, its start button would sit higher than on the other tiles.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool Compact { get; set; }
|
||||
|
||||
[Inject]
|
||||
private IDialogService DialogService { get; init; } = null!;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<MudIconButton Icon="@AppIcons.DELETE"
|
||||
Color="Color.Error"
|
||||
Variant="Variant.Text"
|
||||
Size="Size.Medium"
|
||||
Size="@(this.Compact ? Size.Small : Size.Medium)"
|
||||
Disabled="@(this.isDeleting || this.IsBlockedByActiveWork)"
|
||||
OnClick="@this.DeletePluginAsync" />
|
||||
</MudTooltip>
|
||||
|
||||
@@ -23,6 +23,13 @@ public partial class PluginDeleteAction : MSGComponentBase
|
||||
[Parameter, EditorRequired]
|
||||
public IAvailablePlugin Plugin { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Shows the action as a small button. A tile of the assistants page needs it: next to a button
|
||||
/// of the usual size, its start button would sit higher than on the other tiles.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool Compact { get; set; }
|
||||
|
||||
[Inject]
|
||||
private IDialogService DialogService { get; init; } = null!;
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
- Fixed the automatic security audit of assistant plugins when no model was set for it: you got two error messages for each plugin, again whenever you opened the assistants or plugins page. Now AI Studio tells you once, and the settings of the security audit show a warning.
|
||||
- Fixed the AI-based data validation of classic RAG, which kept passages that the AI had judged as not fitting your question. Now the AI only gets the passages that fit. When the check fails for a passage, AI Studio keeps it, and when it fails for all of them, AI Studio tells you.
|
||||
- Fixed signing in to a mailbox when your username or password contains characters beyond ASCII, such as umlauts, accents, or Asian characters. Depending on its configuration, a mail server may expect them in another encoding than UTF-8. You can now choose the encoding in the server details of the mailbox, and after a failed sign-in, AI Studio offers to test the connection once more with the encoding common in your region.
|
||||
- Fixed the tiles on the assistants page, which were narrower when their texts were short, so that the tiles did not line up in columns. All tiles now have the same width, and their start buttons sit at the same height.
|
||||
- Upgraded several libraries to improve security.
|
||||
- Upgraded Tauri to v2.12.7.
|
||||
- Upgraded PDFium to v158.0.8125.0 and Qdrant Edge to v0.9.0.
|
||||
|
||||
Reference in new issue
Block a user