minor UI changes

This commit is contained in:
2026-11-02 21:24:20 +03:00
parent 802968df3d
commit 153dc74ff6
@@ -313,11 +313,9 @@ export default function ShipPlacementScreen({
return (
<div className="placement-screen-layout">
{opponentReady && (
<div className="placement-opponent-badge">
Соперник готов к бою!
{opponentReady ? "Соперник готов к бою!" : "Соперник расставляет корабли..."}
</div>
)}
<div className="placement-container">
{/* Левая половина: игровое поле 10x10 с линейками и кнопками под ним */}
@@ -421,25 +419,20 @@ export default function ShipPlacementScreen({
{/* Парящий под курсором корабль при перетаскивании */}
{activeDrag && (
<div
className={`floating-drag-ship ${
activeDrag.orientation ? 'vertical' : 'horizontal'
className={`floating-drag-ship ${activeDrag.orientation ? 'vertical' : 'horizontal'
}`}
style={{
left: `${
activeDrag.currentPos.x -
left: `${activeDrag.currentPos.x -
(!activeDrag.orientation ? activeDrag.segIndex * 33 + 15 : 15)
}px`,
top: `${
activeDrag.currentPos.y -
top: `${activeDrag.currentPos.y -
(activeDrag.orientation ? activeDrag.segIndex * 33 + 15 : 15)
}px`,
width: `${
!activeDrag.orientation
width: `${!activeDrag.orientation
? activeDrag.ship.size * 30 + (activeDrag.ship.size - 1) * 3
: 30
}px`,
height: `${
activeDrag.orientation
height: `${activeDrag.orientation
? activeDrag.ship.size * 30 + (activeDrag.ship.size - 1) * 3
: 30
}px`,