camera patch

This commit is contained in:
cheykrym 2026-01-26 21:32:03 +03:00
parent c347e237ba
commit 60b5a46e35

View File

@ -17,13 +17,15 @@ const char INDEX_HTML[] PROGMEM = R"HTML(
input[type=range]{ width: 100%; } input[type=range]{ width: 100%; }
.muted { opacity: 0.7; font-size: 13px; } .muted { opacity: 0.7; font-size: 13px; }
.status { margin-top: 10px; font-family: monospace; } .status { margin-top: 10px; font-family: monospace; }
.cam-wrap { margin: 10px 0; max-width: 420px; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #ccc; border-radius: 6px; }
.cam-img { width: 100%; height: 100%; object-fit: cover; transform: rotate(90deg) scaleY(-1); }
</style> </style>
</head> </head>
<body> <body>
<h2>ESP32 Robot</h2> <h2>ESP32 Robot</h2>
<div style="margin:10px 0; max-width:420px;"> <div class="cam-wrap">
<img src="http://192.168.3.70:81/stream" style="width:100%; border:1px solid #ccc; border-radius:6px; transform: rotate(90deg);" /> <img class="cam-img" src="http://192.168.3.70:81/stream" />
</div> </div>
<div class="grid"> <div class="grid">