Fix mobile layout, roll log visibility with character sheet, ngrok host allowlist, misc UI polish

This commit is contained in:
Aaron Wood 2026-04-09 01:49:23 -04:00
parent 20a1778cbd
commit 9b1a0df8a5
4 changed files with 43 additions and 3 deletions

View file

@ -1,5 +1,5 @@
.overlay { .overlay {
position: fixed; position: absolute;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.7);
display: flex; display: flex;
@ -14,8 +14,8 @@
border: 1px solid #333; border: 1px solid #333;
border-radius: 12px; border-radius: 12px;
width: 100%; width: 100%;
max-width: 1100px; max-width: 900px;
max-height: 95vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
padding: 1.5rem; padding: 1.5rem;

View file

@ -7,6 +7,8 @@
flex-direction: column; flex-direction: column;
transition: width 0.2s; transition: width 0.2s;
flex-shrink: 0; flex-shrink: 0;
z-index: 150;
position: relative;
} }
.panel.collapsed { .panel.collapsed {
@ -118,3 +120,27 @@
font-style: italic; font-style: italic;
padding: 2rem 0; padding: 2rem 0;
} }
@media (max-width: 768px) {
.panel {
width: 100%;
height: 200px;
border-left: none;
border-top: 1px solid #333;
}
.panel.collapsed {
width: 100%;
height: 36px;
}
.collapsedContent {
flex-direction: row;
padding: 0.4rem 0.75rem;
}
.collapsedLast {
writing-mode: horizontal-tb;
max-height: none;
}
}

View file

@ -7,6 +7,19 @@
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding-right: 0.5rem; padding-right: 0.5rem;
position: relative;
min-width: 0;
}
@media (max-width: 768px) {
.layout {
flex-direction: column;
}
.main {
flex: 1;
padding-right: 0;
}
} }
.header { .header {

View file

@ -5,6 +5,7 @@ export default defineConfig({
plugins: [react()], plugins: [react()],
server: { server: {
port: 5173, port: 5173,
allowedHosts: true,
proxy: { proxy: {
"/api": "http://localhost:3000", "/api": "http://localhost:3000",
"/socket.io": { "/socket.io": {