Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): refine composer send icon

Gener9f57a2a6c559
diff --git a/src/web/src/components/community/messages/composer-view.dom.test.ts b/src/web/src/components/community/messages/composer-view.dom.test.ts
index 9f8df603a..a28c08694 100644
--- a/src/web/src/components/community/messages/composer-view.dom.test.ts
+++ b/src/web/src/components/community/messages/composer-view.dom.test.ts
@@ -320,10 +320,12 @@ describe("ComposerView", () => {
const icon = send.querySelector("svg")!
expect(icon.getAttribute("viewBox")).toBe("0 0 24 24")
expect(icon.getAttribute("aria-hidden")).toBe("true")
- expect(icon.getAttribute("class")).toBe("size-5")
+ expect(icon.getAttribute("class")).toBe(
+ "size-5 -translate-x-px translate-y-px",
+ )
expect(icon.getAttribute("fill")).toBe("none")
expect(icon.getAttribute("stroke")).toBe("currentColor")
- expect(icon.getAttribute("stroke-width")).toBe("1.5")
+ expect(icon.getAttribute("stroke-width")).toBe("2")
expect(icon.getAttribute("stroke-linecap")).toBe("round")
expect(icon.getAttribute("stroke-linejoin")).toBe("round")
expect(icon.querySelectorAll("path")).toHaveLength(2)
diff --git a/src/web/src/components/community/messages/composer-view.tsx b/src/web/src/components/community/messages/composer-view.tsx
index 74f374208..fe2d9a051 100644
--- a/src/web/src/components/community/messages/composer-view.tsx
+++ b/src/web/src/components/community/messages/composer-view.tsx
@@ -239,7 +239,9 @@ export function ComposerView({
disabled={sendDisabled}
onClick={onSend}
>
- <SendStrokeRoundedIcon className="size-5" />
+ <SendStrokeRoundedIcon
+ className="size-5 -translate-x-px translate-y-px"
+ />
</button>
)}
</div>
diff --git a/src/web/src/components/community/messages/send-stroke-rounded-icon.tsx b/src/web/src/components/community/messages/send-stroke-rounded-icon.tsx
index e37db3d65..d7ea03e04 100644
--- a/src/web/src/components/community/messages/send-stroke-rounded-icon.tsx
+++ b/src/web/src/components/community/messages/send-stroke-rounded-icon.tsx
@@ -6,7 +6,7 @@ export function SendStrokeRoundedIcon(props: SVGProps<SVGSVGElement>) {
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
- strokeWidth="1.5"
+ strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"