<div class="root">
<div>
<div class="f">
<div class="img-wrapper">
<img src="https://placehold.co/600x400" alt="">
</div>
</div>
</div>
</div>
* {
box-sizing: border-box;
}
.root {
height: 200px;
}
div {
padding: 5px;
border: 3px solid;
}
.root div:not(.img-wrapper) {
height: 100%;
}
.img-wrapper {
border-color: #f00;
max-height: 100%;
display: flex;
}
img {
object-fit: cover;
max-width: 100%;
max-height: 100%;
vertical-align: top;
}
.f {
display: flex;
}
if (file_exists(__DIR__.$file_dir)) {
$router->addRoute("/cameras", "apps/cameras/index.php");
$file_dir = "app/".$path; // "app/apps/cameras/index.php"
что значат эти NODE_ENV,https://yandex.ru/search/?text=переменная+среды
pull - вытягивает коммиты из удаленной репы.