fix(vision-training): make background tiles cover full viewport
The tiled background wasn't covering the entire viewport because the inner grid had no explicit dimensions. Fixed by: - Setting grid to 120vw x 120vh to overflow viewport - Negative margins to center the oversized grid - Increased tile count from 100 to 800 for full coverage - Removed scale(1.2) since explicit sizing handles it 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6efabc2968
commit
a9db984a03
|
|
@ -290,14 +290,18 @@ export default function TrainModelPage() {
|
|||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(auto-fill, 60px)',
|
||||
gap: 2,
|
||||
transform: 'rotate(-5deg) scale(1.2)',
|
||||
transform: 'rotate(-5deg)',
|
||||
transformOrigin: 'center center',
|
||||
width: '120vw',
|
||||
height: '120vh',
|
||||
marginLeft: '-10vw',
|
||||
marginTop: '-10vh',
|
||||
})}
|
||||
>
|
||||
{/* Repeat tiles to fill background */}
|
||||
{Array.from({ length: Math.ceil(50 / Math.max(1, allTileImages.length)) })
|
||||
{/* Repeat tiles to fill background (need ~600+ for full coverage) */}
|
||||
{Array.from({ length: Math.ceil(800 / Math.max(1, allTileImages.length)) })
|
||||
.flatMap(() => allTileImages)
|
||||
.slice(0, 100)
|
||||
.slice(0, 800)
|
||||
.map((src, i) => (
|
||||
<img
|
||||
key={`${src}-${i}`}
|
||||
|
|
|
|||
Loading…
Reference in New Issue