mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix(core): ai affine label alignment (#11952)
before  after  <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated the visual structure of the assistant avatar for a cleaner appearance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -10,16 +10,14 @@ const AffineAvatarIcon = AiIcon({
|
|||||||
|
|
||||||
export class AssistantAvatar extends ShadowlessElement {
|
export class AssistantAvatar extends ShadowlessElement {
|
||||||
static override styles = css`
|
static override styles = css`
|
||||||
.assistant-avatar {
|
chat-assistant-avatar {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
protected override render() {
|
protected override render() {
|
||||||
return html`<span class="assistant-avatar"
|
return html`${AffineAvatarIcon} AFFiNE AI`;
|
||||||
>${AffineAvatarIcon} AFFiNE AI</span
|
|
||||||
>`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user