Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge branch 'feat/optimize-mobile-style' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed May 7, 2024
2 parents e314d66 + dec92d2 commit 274699a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
2 changes: 0 additions & 2 deletions apps/agent/src/components/PreviewChat/MessageList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ const MessageList = forwardRef<HTMLDivElement, IMessageListProps>(
}
})}
</div>

{/* <div css={maxWidthStyle}>{messagesList}</div> */}
</div>
)
},
Expand Down
4 changes: 4 additions & 0 deletions apps/agent/src/components/PreviewChat/MessageList/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { css } from "@emotion/react"
import { applyMobileStyle } from "@illa-public/utils"

export const chatContainerStyle = css`
display: flex;
Expand All @@ -14,4 +15,7 @@ export const maxWidthStyle = css`
width: 100%;
max-width: 832px;
padding: 0 16px;
${applyMobileStyle(css`
padding: 0 20px;
`)}
`
2 changes: 1 addition & 1 deletion apps/agent/src/components/PreviewChat/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const inputTextContainerStyle = css`
flex: none;
${applyMobileStyle(css`
border-top: 1px solid ${getColor("grayBlue", "09")};
padding: 20px;
padding: 12px 20px;
`)}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const agentMessageContainer = css`
flex-direction: row;
width: 100%;
${applyMobileStyle(css`
padding: 24px 12px 8px 12px;
padding: 24px 0 8px 0;
`)}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const agentMessageContainer = css`
overflow: hidden;
flex: none;
${applyMobileStyle(css`
padding: 24px 12px 8px 12px;
padding: 24px 0 8px 0;
`)}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const agentMessageContainer = css`
flex: none;
flex-direction: row;
${applyMobileStyle(css`
padding: 24px 12px 8px 12px;
padding: 24px 0 8px 0;
`)}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ export const descriptionStyle = css`
color: ${getColor("grayBlue", "03")};
font-size: 12px;
font-weight: 400;
width: 100%;
line-height: 16px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
word-break: break-all;
`
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ export const nameStyle = css`
export const descriptionStyle = css`
color: ${getColor("grayBlue", "03")};
font-size: 12px;
width: 100%;
font-weight: 400;
line-height: 16px;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
word-break: break-all;
`

0 comments on commit 274699a

Please sign in to comment.