refactor(ui): optimize layout responsiveness and component positioning
- Switch to dynamic viewport height (dvh) for better mobile support - Implement fixed positioning for chat input using :host-context - Simplify home page layout logic and remove redundant padding - Disable Angular CLI analytics in configuration
This commit is contained in:
@@ -93,5 +93,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"cli": {
|
||||||
|
"analytics": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100dvh;
|
||||||
|
box-sizing: border-box;
|
||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
transition: padding 0.4s ease;
|
transition: padding 0.4s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -31,7 +32,6 @@
|
|||||||
|
|
||||||
.home-page.has-messages {
|
.home-page.has-messages {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding-bottom: 2rem;
|
|
||||||
background: var(--app-bg);
|
background: var(--app-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,10 +146,6 @@
|
|||||||
padding: 1.25rem 0.75rem;
|
padding: 1.25rem 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-page.has-messages {
|
|
||||||
padding-bottom: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.home-header {
|
.home-header {
|
||||||
top: 1.25rem;
|
top: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host-context(.has-messages) {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
.ai-chat-input-wrapper {
|
.ai-chat-input-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
|
|||||||
Reference in New Issue
Block a user