mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 05:39:05 +08:00
style(MinApp): responsive layout for MinAppPage (#10125)
style(MinApp): adjust container styles for better layout - Add min-height to MinApp container - Remove absolute positioning from search bar - Improve flex and overflow handling in containers - Adjust margins and widths for better spacing
This commit is contained in:
parent
8f36c4e793
commit
276269e583
@ -135,6 +135,7 @@ const Container = styled.div`
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
min-height: 85px;
|
||||
`
|
||||
|
||||
const IconContainer = styled.div`
|
||||
|
||||
@ -46,10 +46,7 @@ const AppsPage: FC = () => {
|
||||
style={{
|
||||
width: '30%',
|
||||
height: 28,
|
||||
borderRadius: 15,
|
||||
position: 'absolute',
|
||||
left: '50vw',
|
||||
transform: 'translateX(-50%)'
|
||||
borderRadius: 15
|
||||
}}
|
||||
size="small"
|
||||
variant="filled"
|
||||
@ -107,6 +104,7 @@ const Container = styled.div`
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
`
|
||||
|
||||
const ContentContainer = styled.div`
|
||||
@ -132,11 +130,13 @@ const MainContainer = styled.div`
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
height: calc(100vh - var(--navbar-height));
|
||||
width: 100%;
|
||||
`
|
||||
|
||||
const RightContainer = styled(Scrollbar)`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
@ -150,6 +150,7 @@ const AppsContainerWrapper = styled(Scrollbar)`
|
||||
justify-content: center;
|
||||
padding: 50px 0;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
[navbar-position='top'] & {
|
||||
padding: 20px 0;
|
||||
}
|
||||
@ -159,6 +160,7 @@ const AppsContainer = styled.div`
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
max-width: 930px;
|
||||
margin: 0 20px;
|
||||
width: 100%;
|
||||
grid-template-columns: repeat(auto-fill, 90px);
|
||||
gap: 25px;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user