Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !22288

Card image fixes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Otto requested to merge card-img into v4-dev Mar 28, 2017
  • Overview 0
  • Commits 5
  • Pipelines 0
  • Changes 2

Closes #21857, fixes #21650 (closed), and closes #21885 (closed) (dupe of #21650 (closed)).

The card image stretching affected .card-img, .card-img-top, and .card-img-bottom as we utilize flexbox and flex-direction: column on .card. Intrinsic image sizing is basically borked with flex due to the default stretch value for aligning the content. There's no real way around this it seems other than width: 100%; as no other flex property will address the aspect ratio.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: card-img