JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<html>
  <head>
    <style>
      .grid {
        display: grid;
        gap: 16px;
      }

      .card {
        border: 1px solid black;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        row-gap: 0;
      }

      .content {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
        padding: 16px;
      }

      .footer {
        overflow: hidden;
      }
    </style>
  </head>
  <body>
    <div class="grid">
      <div class="card">
        <h2>Top</h2>
        <div class="content">
          <div class="footer">
            Long text that overflows and should be truncated with an ellipsis
            instead of being clipped vertically
          </div>
        </div>
      </div>

      <div class="card">
        <h2>Top</h2>
        <div class="content">
          <div class="footer">
            Long text that overflows and should be truncated with an ellipsis
            instead of being clipped vertically
          </div>
        </div>
      </div>
    </div>
  </body>
</html>