Skip to content

Commit 05d36e3

Browse files
dbym4820claude
andcommitted
Fix mobile container overflow and preserve DB on deploy
- Add max-w-full and overflow-x-hidden to journal management container - Remove database DROP on setup.sh to preserve existing data during CI/deploy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 71c9164 commit 05d36e3

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

resources/ts/components/JournalManagement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function JournalManagement(): JSX.Element {
118118
};
119119

120120
return (
121-
<main className="w-full px-4 sm:w-[95%] md:w-[90%] lg:w-[85%] sm:px-0 mx-auto py-4 sm:py-6">
121+
<main className="w-full max-w-full overflow-x-hidden px-4 sm:w-[95%] md:w-[90%] lg:w-[85%] sm:px-0 mx-auto py-4 sm:py-6">
122122
{/* アクションバー */}
123123
<div className="mb-6 flex flex-wrap items-center justify-between gap-4">
124124
<div className="flex items-center gap-2 text-sm text-gray-600">

setup.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -275,23 +275,16 @@ if [ "$DB_CONNECTION" = "mysql" ]; then
275275
DB_EXISTS=$($MYSQL_CMD -N -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME='$DB_DATABASE'" 2>/dev/null || echo "")
276276

277277
if [ -n "$DB_EXISTS" ]; then
278-
echo " Database '$DB_DATABASE' already exists. Dropping and recreating..."
279-
$MYSQL_CMD -e "DROP DATABASE \`$DB_DATABASE\`;" 2>/dev/null
278+
echo " Database '$DB_DATABASE' already exists. Keeping existing data."
279+
else
280+
echo " Creating database '$DB_DATABASE'..."
281+
$MYSQL_CMD -e "CREATE DATABASE \`$DB_DATABASE\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" 2>/dev/null
280282
if [ $? -eq 0 ]; then
281-
echo " Database dropped: OK"
283+
echo " Database created: OK"
282284
else
283-
echo " Failed to drop database."
284-
exit 1
285+
echo " Failed to create database. Please create it manually."
285286
fi
286287
fi
287-
288-
echo " Creating database '$DB_DATABASE'..."
289-
$MYSQL_CMD -e "CREATE DATABASE \`$DB_DATABASE\` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" 2>/dev/null
290-
if [ $? -eq 0 ]; then
291-
echo " Database created: OK"
292-
else
293-
echo " Failed to create database. Please create it manually."
294-
fi
295288
else
296289
echo " Warning: MySQL client not found. Please create database manually."
297290
fi

0 commit comments

Comments
 (0)