Skip to content

Commit

Permalink
style(assistant): tweak the style of the button (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying authored Jan 7, 2025
1 parent 6c4432e commit 29056a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@petercatai/assistant",
"version": "2.0.15",
"version": "2.0.17",
"description": "PeterCat Assistant Application",
"repository": "https://github.com/petercat-ai/petercat.git",
"license": "MIT",
Expand Down
17 changes: 7 additions & 10 deletions assistant/src/Chat/components/InputAreaRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ const InputAreaRender = (props: {
{props && props.isShowStop && (
<Button
disabled={disabled}
type="primary"
className="bg-white hover:!bg-white shadow-md"
className="bg-white hover:!bg-white shadow-md border-none rounded-[6px] leading-[0px]"
icon={<StopMessageIcon />}
onClick={() => {
if (props && props.onStop) {
Expand All @@ -203,9 +202,8 @@ const InputAreaRender = (props: {
/>
)}
<Button
type="primary"
disabled={disabled}
className="bg-white hover:!bg-white shadow-md"
className="bg-white hover:!bg-white shadow-md border-none rounded-[6px] leading-[0px]"
onClick={() => {
if (props && props.onClear) {
props.onClear();
Expand All @@ -227,11 +225,10 @@ const InputAreaRender = (props: {
>
<Button
disabled={disabled}
type="primary"
className={
uploadDisabled
? 'cu🤪rsor-not-allowed bg-white hover:!bg-white shadow-md'
: 'bg-white hover:!bg-white shadow-md'
? 'cursor-not-allowed bg-white hover:!bg-white shadow-md'
: 'bg-white hover:!bg-white shadow-md border-none rounded-[6px] leading-[0px]'
}
icon={
<div style={uploadDisabled ? { opacity: 0.6 } : {}}>
Expand All @@ -244,7 +241,7 @@ const InputAreaRender = (props: {
{fileList.map((file) => (
<div key={file.uid} className="relative h-[32px]">
{file.isLoading ? (
<div className="rounded-lg shadow-md w-[32px] h-[32px] flex items-center justify-center">
<div className="rounded-lg shadow-md w-[32px] h-[32px] flex items-center justify-center border-none rounded-[6px] leading-[0px]">
<LoadingOutlined className="text-center" />
</div>
) : (
Expand All @@ -256,7 +253,7 @@ const InputAreaRender = (props: {
width={32}
height={32}
alt="uploaded"
className="object-cover rounded-lg shadow-md"
className="object-cover rounded-lg shadow-md border-none rounded-[6px] leading-[0px]"
/>
)}

Expand All @@ -273,7 +270,7 @@ const InputAreaRender = (props: {
</div>
<Button
type="primary"
className="w-[32px] bg-gray-700 hover:!bg-gray-700 shadow-md"
className="w-[32px] bg-gray-700 hover:!bg-gray-700 shadow-md border-none rounded-[6px] leading-[0px]"
onClick={() => {
handleMessage(form.getFieldValue('question'));
}}
Expand Down

0 comments on commit 29056a5

Please sign in to comment.