Spaces:
Sleeping
Sleeping
David Ko
style(frontend): ensure image preview fits container without cropping; rebuild and sync CRA assets
a757b4d
| .App { | |
| text-align: center; | |
| } | |
| .preview-image { | |
| width: 100%; | |
| height: auto; | |
| max-height: 100%; | |
| object-fit: contain; | |
| display: block; | |
| margin-top: 0; | |
| } | |
| .result-image { | |
| max-width: 100%; | |
| border: 1px solid #ddd; | |
| border-radius: 4px; | |
| padding: 4px; | |
| } | |
| .detection-list { | |
| margin-top: 16px; | |
| text-align: left; | |
| } | |
| .model-card { | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| } | |
| .model-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); | |
| } | |
| .model-card.selected { | |
| border: 2px solid #3f51b5; | |
| background-color: #e8eaf6; | |
| } | |
| .model-card.disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| } | |
| .performance-info { | |
| margin-top: 16px; | |
| font-size: 0.9rem; | |
| color: #666; | |
| } | |