Rive content does not shrink with Flexbox (React runtime)

Hi, this is related to this post but with React runtime

✅ Can't get the Layout feature to work at runtime on a webpage | Rive

When using Rive content with React runtime using `useRive` hook or `<Rive />` component inside a CSS Flexbox, the content can grow up in size when window is scaled up, but never shrinks down when window is scaled down.

When using vanilla Web (JS) runtime this is not an issue and everything seems to work fine, including `Fit.Layout`.

Rive React resize.mov
import "./App.css";
import { useRive } from "@rive-app/react-canvas";

function App() {
  return (
    <div className="container">
      <div className="pane">
        <RiveAnimation />
      </div>
      <div className="pane">
        <RiveAnimation />
      </div>
    </div>
  );
}

const RiveAnimation = () => {
  const { RiveComponent } = useRive({
    src: "https://cdn.rive.app/animations/vehicles.riv",
  });
  return <RiveComponent />;
};

export default App;
body {
  margin: 0;
  background-color: #f0f0f0;
  height: 100vh;
}
#root {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  gap: 10px;
}
.container .pane {
  flex: 1;
  aspect-ratio: 1 / 1;
  background-color: aqua;
  /* overflow: hidden; */
}

I’m using `@rive-app/react-canvas@4.19.0(react@19.1.0)`

When adding `overflow: hidden;` this seems to “fix” the issue, but seems like accidentally rather than intentionally.

I also see different behaviour for `Fit.Layout` when using `useRive` hook compared to `<Rive />` component. For some reason the hook approach does not set resize Rive content responsively. Shouldn’t these 2 approaches create identical output?