mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 13:19:33 +08:00
refactor: update ImageBlockGroup layout to use CSS grid for better re… (#5998)
refactor: update ImageBlockGroup layout to use CSS grid for better responsiveness
This commit is contained in:
parent
33b28d783a
commit
928530c6f6
@ -162,15 +162,19 @@ const MessageBlockRenderer: React.FC<Props> = ({ blocks, message }) => {
|
|||||||
export default React.memo(MessageBlockRenderer)
|
export default React.memo(MessageBlockRenderer)
|
||||||
|
|
||||||
const ImageBlockGroup = styled.div`
|
const ImageBlockGroup = styled.div`
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(3, minmax(200px, 1fr));
|
||||||
justify-content: flex-start;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 8px 0;
|
max-width: 960px;
|
||||||
> * {
|
> * {
|
||||||
flex: 0 0 auto;
|
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
@media (min-width: 1536px) {
|
||||||
|
grid-template-columns: repeat(4, minmax(250px, 1fr));
|
||||||
|
max-width: 1280px;
|
||||||
|
> * {
|
||||||
|
min-width: 250px;
|
||||||
|
}
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user