Skip to content

Commit

Permalink
docs: remove width
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-ub committed Nov 9, 2024
1 parent 7b43894 commit d869ab9
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions docs/src/registry/default/example/aspect-ratio-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ import { Component } from '@angular/core'
},
],
template: `
<div class="w-96">
<div ubAspectRatio [ratio]="16 / 9" class="bg-muted">
<img
ngSrc="https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80"
alt="Photo by Drew Beamer"
fill
class="h-full w-full rounded-md object-cover"
ngSrcset="640w, 750w, 828w, 1080w, 1200w, 1920w, 2048w, 3840w"
sizes="100vw"
style="position: absolute; height: 100%; width: 100%; inset: 0px; color: transparent;"
priority
/>
</div>
<div ubAspectRatio [ratio]="16 / 9" class="bg-muted">
<img
ngSrc="https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80"
alt="Photo by Drew Beamer"
fill
class="h-full w-full rounded-md object-cover"
ngSrcset="640w, 750w, 828w, 1080w, 1200w, 1920w, 2048w, 3840w"
sizes="100vw"
style="position: absolute; height: 100%; width: 100%; inset: 0px; color: transparent;"
priority
/>
</div>
`,
})
Expand Down

0 comments on commit d869ab9

Please sign in to comment.