6.11.5: Стили блока выбора доски в товарах и желаниях
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m5s

This commit is contained in:
poignatov
2026-03-11 09:41:27 +03:00
parent a35797a1f9
commit 3624cfffbd
5 changed files with 44 additions and 17 deletions

View File

@@ -1 +1 @@
6.11.4 6.11.5

View File

@@ -1,6 +1,6 @@
{ {
"name": "play-life-web", "name": "play-life-web",
"version": "6.11.4", "version": "6.11.5",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -4,10 +4,23 @@
padding-bottom: 2.5rem; padding-bottom: 2.5rem;
} }
.close-x-button { .shopping-header {
position: fixed; display: flex;
top: 1rem; align-items: flex-start;
right: 1rem; gap: 8px;
max-width: 42rem;
margin: 0 auto;
padding-top: 1rem;
}
.shopping-header .board-selector {
flex: 1;
max-width: none;
margin: 0;
}
.shopping-close-btn {
flex-shrink: 0;
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.9);
border: none; border: none;
font-size: 1.5rem; font-size: 1.5rem;
@@ -20,15 +33,19 @@
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
transition: background-color 0.2s, color 0.2s; transition: background-color 0.2s, color 0.2s;
z-index: 1600;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
} }
.close-x-button:hover { .shopping-close-btn:hover {
background-color: #ffffff; background-color: #ffffff;
color: #2c3e50; color: #2c3e50;
} }
.shopping-header .board-pill {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-color: transparent;
}
.shopping-empty { .shopping-empty {
text-align: center; text-align: center;
padding: 3rem 1rem; padding: 3rem 1rem;

View File

@@ -531,7 +531,7 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia
return ( return (
<div className="shopping-list"> <div className="shopping-list">
<button className="close-x-button" onClick={() => window.history.back()}></button> <div className="shopping-header">
<BoardSelector <BoardSelector
boards={boards} boards={boards}
selectedBoardId={selectedBoardId} selectedBoardId={selectedBoardId}
@@ -540,6 +540,8 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia
onAddBoard={handleAddBoard} onAddBoard={handleAddBoard}
loading={boardsLoading} loading={boardsLoading}
/> />
<button className="shopping-close-btn" onClick={() => window.history.back()}></button>
</div>
{boards.length === 0 && !boardsLoading && ( {boards.length === 0 && !boardsLoading && (
<div className="shopping-empty"> <div className="shopping-empty">

View File

@@ -478,3 +478,11 @@
transform: translateY(-1px); transform: translateY(-1px);
} }
.wishlist .board-pill {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.wishlist .board-pill {
border-color: transparent;
}