I have 1 div with exact width 300px and if the window size is less than that I want to be a scrollable herizontally , I've use overflow-x-auto but It still not working and that div is getting smaller as window size here's my code
<div>
<div className="flex h-screen overflow-scroll">
<div className="bg-red-400 w-[200px] ">
<input type="number" className="p-1 rounded m-2" />
</div>
<div className="bg-blue-300 w-[100px] sm:w-full sm:bg-red-500">
<Select
className=" m-2 "
defaultValue={selectedOption}
onChange={setSelectedOption}
options={options}
/>
</div>
<div className="bg-gray-200 w-[300px] overflow-y-scroll ">
{result}
</div>
</div>
</div>