Skip to main content
Glama
AndroidLiveView.module.css8.22 kB
/* Android Live View - Restored Original Layout */ .androidLiveView { display: flex; height: 100vh; max-height: 100vh; width: 100vw; max-width: 100vw; background: #1a1a1a; color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; flex-direction: column; position: relative; border-radius: 0; overflow: hidden; box-sizing: border-box; } /* Header */ .header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(0, 0, 0, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; backdrop-filter: blur(10px); } .title { font-size: 18px; font-weight: 600; color: #ffffff; margin: 0; } .connectionStatus { font-size: 14px; color: #888; margin: 0 16px; flex: 1; text-align: center; } .controls { display: flex; gap: 8px; align-items: center; } .controls button { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #ffffff; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 500; transition: all 0.2s ease; backdrop-filter: blur(10px); } .controls button:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); } .controls button.active { background: #667eea; border-color: #667eea; color: #ffffff; } /* Content Wrapper - Sidebar Layout */ .contentWrapper { display: flex; flex: 1; position: relative; overflow: hidden; min-width: 0; } /* Sidebar - Device List Area */ .sidebar { width: 320px; min-width: 300px; max-width: 320px; background: #2d2d2d; padding: 0; overflow-y: auto; overflow-x: hidden; flex-shrink: 0; box-sizing: border-box; border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; } /* Sidebar Header */ .sidebarHeader { padding: 16px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; } .sidebarTitle { font-size: 18px; font-weight: 600; color: #ffffff; margin: 0; } /* Sidebar Content */ .sidebarContent { padding: 16px; flex: 1; overflow-y: auto; } /* Sidebar Footer */ .sidebarFooter { padding: 12px 16px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; } .sidebarConnectionStatus { font-size: 12px; color: #ff6b6b; font-weight: 500; text-align: left; } .sidebarConnectionStatus.connected { color: #4CAF50; } .sidebarConnectionStatus.connecting { color: #FF9800; } .sidebarConnectionStatus.error { color: #f44336; } /* Mode Switcher */ .modeSwitcher { margin-bottom: 16px; padding: 12px; background: rgba(0, 0, 0, 0.3); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); box-sizing: border-box; } .modeSwitcherTitle { color: #ffffff; font-size: 14px; font-weight: 600; margin-bottom: 12px; text-align: center; } .modeButtonGroup { display: flex; background: rgba(255, 255, 255, 0.1); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; } .modeBtn { flex: 1; padding: 8px 12px; border: none; background: transparent; color: #fff; cursor: pointer; font-size: 12px; font-weight: 500; transition: all 0.2s ease; text-align: center; position: relative; box-sizing: border-box; min-width: 0; } .modeBtn:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: rgba(255, 255, 255, 0.2); } .modeBtn:first-child { border-top-left-radius: 7px; border-bottom-left-radius: 7px; } .modeBtn:last-child { border-top-right-radius: 7px; border-bottom-right-radius: 7px; } .modeBtn:hover { background: rgba(255, 255, 255, 0.15); } .modeBtn.active { background: #667eea; color: #fff; } .modeBtn.active:not(:last-child)::after { display: none; } /* Main Content - Video Area */ .mainContent { flex: 1; display: flex; flex-direction: column; background: #000; overflow: hidden; position: relative; height: 100%; min-height: 0; } /* Video Container */ .videoContainer { flex: 1; position: relative; background: #000; display: flex; flex-direction: column; overflow: hidden; min-height: 0; box-sizing: border-box; } /* Video Content - Removed, simplified structure */ /* Video Main Area */ .videoMainArea { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; min-width: 0; padding: 8px; box-sizing: border-box; background: #000; } /* Video Wrapper */ .videoWrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: 100%; max-height: 100%; overflow: hidden; min-height: 0; min-width: 0; } /* Video Element */ .video { object-fit: contain; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; cursor: pointer; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; transition: width 0.2s ease, height 0.2s ease; } .video.dragging { cursor: grabbing; } /* Client Container */ .clientContainer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; } /* Touch Indicator */ .touchIndicator { position: fixed; width: 20px; height: 20px; background: rgba(0, 122, 255, 0.4); border-radius: 50%; pointer-events: none; z-index: 1001; display: none; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(0, 122, 255, 0.5); } .touchIndicator.active { display: block; } .touchIndicator.dragging { background: rgba(0, 122, 255, 0.6); box-shadow: 0 0 20px rgba(0, 122, 255, 0.8); width: 24px; height: 24px; } /* Controls Area - Positioned absolutely in video area */ .controlsArea { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1000; pointer-events: auto; } /* Stats Area */ .statsArea { position: relative; bottom: 0; left: 0; right: 0; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 10; background: rgba(0, 0, 0, 0.9); border-top: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; font-weight: bolder; } /* Stats */ .stats { background: transparent; padding: 4px 12px; border-radius: 0; font-size: 11px; color: #888; pointer-events: auto; display: flex; align-items: center; gap: 12px; backdrop-filter: none; border: none; } .stats .connectionStatus { color: #ff6b6b; font-weight: 500; } /* Toggle Button */ .toggleButton { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: none; background: rgba(0, 0, 0, 0.8); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; color: white; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); } .toggleButton:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.1); color: #4CAF50; } .toggleButton:active { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(0.95); } /* Responsive Design */ @media (max-width: 1200px) { .sidebar { width: 300px; min-width: 280px; } .videoContainer { padding: 8px; } } /* Ensure video fits properly on smaller screens */ @media (max-height: 800px) { .videoContainer { padding: 12px; } } @media (max-height: 600px) { .videoContainer { padding: 8px; } } @media (max-width: 768px) { .contentWrapper { flex-direction: column; } .sidebar { width: 100%; height: 220px; min-width: unset; order: 2; overflow-y: auto; padding: 16px; } .mainContent { order: 1; height: calc(100% - 220px); } .videoContainer { padding: 8px; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/babelcloud/gru-sandbox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server