I have a question about this specific div element:
<div class="relative rounded overflow-clip border w-full" [style.aspect-ratio]="media.value.ratio">
<img fill priority [ngSrc]="media.value.src || ftaLogo" [alt]="media.value.caption"
[style.object-fit]="media.value.fit" (click)="insertMedia()">
</div>
Upon startup, I am attempting to set the aspect ratio based on a model, but it is not being applied as expected. What could be causing this issue?
The aspect ratio specified in my model is 16:9. Even after inspecting the code in the browser, the style is not being correctly applied.
Interestingly, when I manually change the aspect ratio while the application is running (by clicking a button), it works perfectly fine.