diff --git a/client/src/components/HeaderBar.vue b/client/src/components/HeaderBar.vue
index 2bcdb358..e2ae2635 100644
--- a/client/src/components/HeaderBar.vue
+++ b/client/src/components/HeaderBar.vue
@@ -4,24 +4,71 @@
-
+
+
+
+
アプリとしてインストール
+
@@ -78,6 +125,11 @@ onMounted(() => {
}
.pwa-install-button {
+ height: 46px;
+ margin-left: 12px;
+ background: rgb(var(--v-theme-background-lighten-1));
+ color: rgb(var(--v-theme-text));
+
@include smartphone-horizontal {
display: none !important;
}
@@ -87,4 +139,37 @@ onMounted(() => {
}
}
+.search-box {
+ position: relative;
+
+ .search-input {
+ width: 230px;
+ height: 46px;
+ padding: 0 12px;
+ border-radius: 6px;
+ border: 1.5px solid rgb(var(--v-theme-background-lighten-2));
+ background: rgb(var(--v-theme-background-lighten-1));
+ color: rgb(var(--v-theme-text-darken-1));
+ font-size: 15px;
+
+ &:focus {
+ outline: none;
+ }
+
+ &::placeholder {
+ color: rgb(var(--v-theme-text-darken-2));
+ }
+ }
+
+ .search-input__icon {
+ position: absolute;
+ top: 50%;
+ right: 8px;
+ transform: translateY(-50%);
+ padding-left: 4px;
+ color: rgb(var(--v-theme-text-darken-2));
+ background: rgb(var(--v-theme-background-lighten-1));
+ }
+}
+
\ No newline at end of file
diff --git a/client/src/components/SPHeaderBar.vue b/client/src/components/SPHeaderBar.vue
index 8a68e53e..a96a14eb 100644
--- a/client/src/components/SPHeaderBar.vue
+++ b/client/src/components/SPHeaderBar.vue
@@ -20,9 +20,9 @@
-
+// 検索クエリの初期化関数
+const initialize_search_query = () => {
+ if (route.path.endsWith('/search') && route.query.query) {
+ search_query.value = decodeURIComponent(route.query.query as string);
+ is_search_active.value = true;
+ }
+};
+
+// コンポーネントのマウント時に初期化
+onMounted(() => {
+ initialize_search_query();
+});
+
+// ルートの変更を監視して検索クエリを更新
+watch(() => route.fullPath, initialize_search_query);
+
+
\ No newline at end of file