Skip to content

Commit

Permalink
fix(Ship): Long lists not in overflow scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasmirnov03 committed Dec 13, 2023
1 parent 93e9cf5 commit 96f6254
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Marketplace: FC = () => {
}

return (
<article className="marketplace">
<article className="w-full">
<h2 className="title-3xl mb-10">{shipContext.marketplace?.symbol} Market</h2>
<ul className="longList">
{shipContext.marketplace?.tradeGoods?.map(good => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Shipyard: FC = () => {
}

return (
<article>
<article className="w-full">
<header className="mb-10">
<h2 className="title-3xl">Shipyard {shipContext.shipyard?.symbol}</h2>
</header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {shipCanPerformAction} from '../../../../utils/ship/shipCanPerformAction'
import {useShip} from '../../../../hooks/ship/useShip';
import {getDistanceToWaypoint} from '../../../../utils/ship/getDistanceToWaypoint';
import {getArrivalTime} from '../../../../utils/ship/getArrivalTime';
import './waypoints.css';

interface WaypointsProps {
}
Expand All @@ -13,7 +12,7 @@ export const Waypoints: FC<WaypointsProps> = () => {
const shipContext = useShip();

return (
<article className="shipWaypoints vertical-flex-layout">
<article className="w-full vertical-flex-layout">
<button disabled={!shipCanPerformAction(shipContext.ship, shipContext.cooldown ?? 0)} className="button"
onClick={shipContext.scanWaypoints}>Scan nearby waypoints
</button>
Expand Down
3 changes: 0 additions & 3 deletions src/components/dashboard/ship-details/waypoints/waypoints.css

This file was deleted.

4 changes: 4 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ body {
margin-top: auto;
}

.w-full {
width: 100%;
}

/* Main layout
*/

Expand Down

0 comments on commit 96f6254

Please sign in to comment.