refactor: improve layout and styling of preview components for better responsiveness

This commit is contained in:
sha
2025-05-30 02:35:29 +03:00
parent 99fbbe551a
commit 13e148dc8a
2 changed files with 99 additions and 77 deletions
+19 -4
View File
@@ -79,21 +79,23 @@
<style>
.preview-route {
width: 100%;
min-height: 100vh;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.preview-container {
flex: 1;
min-height: 0;
overflow: hidden;
}
.back-button-container {
padding: 1rem 2rem;
background: var(--color-card);
position: sticky;
top: 0;
z-index: 5;
flex-shrink: 0;
border-bottom: 1px solid var(--color-border);
}
.back-button {
@@ -113,4 +115,17 @@
.back-button:hover {
background: var(--color-accent-hover);
}
@media (max-width: 900px) {
.preview-route {
height: auto;
min-height: 100vh;
overflow: visible;
}
.preview-container {
overflow: visible;
min-height: auto;
}
}
</style>