ボトムナビゲーションバーに被らないようにボタンの位置を修正

feature-frontend-alert
Masaharu.Kato 4 months ago
parent ed76ca7148
commit 6ea97add08
  1. 2
      frontend/src/pages/AddRecipe.tsx
  2. 7
      frontend/src/pages/DishList.tsx
  3. 4
      frontend/src/pages/RecipeList.tsx

@ -215,7 +215,7 @@ const AddRecipe: React.FC = () => {
</Fab>
</div>
<div style={{ position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "2%", whiteSpace: 'nowrap' }}>
<div style={{ position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "64px", whiteSpace: 'nowrap' }}>
<Button variant='contained' color="primary" onClick={handleSubmit} sx={{ marginRight: "1rem" }}>
<SaveIcon sx={{ fontSize: "1.5rem", marginRight: "0.5rem" }} />

@ -159,9 +159,10 @@ const DishList: React.FC = () => {
))}
{/* </List> */}
</div>
<div style={{width: "100%", position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "20px"}}>
<Button variant='contained' sx={{width: "60%", height: "60px",
fontSize: "40px", left: "50%", transform: 'translateX(-50%)' }}
<div style={{width: "100%", position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "64px"}}>
<Button variant='contained' sx={{
width: "60%",
fontSize: "24px", left: "50%", transform: 'translateX(-50%)' }}
color="primary"
onClick={() => navigate('/add1')}
>

@ -96,10 +96,10 @@ const RecipeList: React.FC = () => {
))}
{/* </List> */}
</div>
<div style={{ width: "100%", position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "20px" }}>
<div style={{ width: "100%", position: "fixed", left: "50%", transform: 'translateX(-50%)', bottom: "64px" }}>
<Button variant='contained' sx={{
width: "60%", height: "60px",
fontSize: "40px", left: "50%", transform: 'translateX(-50%)'
fontSize: "32px", left: "50%", transform: 'translateX(-50%)'
}}
color="primary"
onClick={() => navigate('/AddRecipe')}

Loading…
Cancel
Save