Skip to content

Commit

Permalink
AI Chat: small UI fixes (#20716)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullhook authored Oct 27, 2023
1 parent aba7303 commit d353689
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/ai_chat/core/constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ base::span<const webui::LocalizedString> GetLocalizedStrings() {
{"errorContextLimitReaching", IDS_CHAT_UI_ERROR_CONTEXT_LIMIT_REACHING},
{"gotItButtonLabel", IDS_CHAT_UI_GOT_IT_BUTTON_LABEL},
{"pageContentTooLongWarning", IDS_CHAT_UI_PAGE_CONTENT_TOO_LONG_WARNING},
{"errorConversationEnd", IDS_CHAT_UI_CONVERSATION_END_ERROR}};
{"errorConversationEnd", IDS_CHAT_UI_CONVERSATION_END_ERROR},
{"leoSettingsTooltipLabel", IDS_CHAT_UI_LEO_SETTINGS_TOOLTIP_LABEL}};

return kLocalizedStrings;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function FeatureMenu() {

return (
<ButtonMenu className={styles.featureMenu}>
<div slot='anchor-content'>
<div slot='anchor-content' title={getLocale('leoSettingsTooltipLabel')}>
<Icon name='more-horizontal' />
</div>
<div className={styles.menuSectionTitle}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@
}

.lockOpen {
--leo-icon-color: var(--leo-color-icon-disabled);
--leo-icon-color: var(--leo-color-systemfeedback-success-icon);
}

.featureMenu {
height: var(--leo-icon-size);
}
3 changes: 2 additions & 1 deletion components/ai_chat/resources/page/stories/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ provideStrings({
braveLeoChatLeoExpandedSubtitle: 'Advanced and accurate chat',
braveLeoChatClaudeInstantSubtitle: 'Strength in creative tasks',
pageContentTooLongWarning: 'The page you\'re trying to summarize is too long. Some context could be missing from the conversation.',
errorConversationEnd: 'This conversation is too long and cannot continue. There may be other models available with which Leo is capable of maintaining accuracy for longer conversations.'
errorConversationEnd: 'This conversation is too long and cannot continue. There may be other models available with which Leo is capable of maintaining accuracy for longer conversations.',
leoSettingsTooltipLabel: 'Leo settings',
})
3 changes: 3 additions & 0 deletions components/resources/ai_chat_ui_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,7 @@
<message name="IDS_CHAT_UI_CHAT_CLAUDE_INSTANT_SUBTITLE" desc="A description for claude-instant-v1 model">
Conversation and text generation
</message>
<message name="IDS_CHAT_UI_LEO_SETTINGS_TOOLTIP_LABEL" desc="A label for leo settings tooltip">
Leo settings
</message>
</grit-part>

0 comments on commit d353689

Please sign in to comment.