Skip to content

Commit b6f1c31

Browse files
committed
💄 [annict] 検索欄サイズを可変に
1 parent 59c7cee commit b6f1c31

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/miraktest-annict/components/AnnictTrack.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,24 @@ export const AnnictTrack: React.FC<{
178178
"bg-gray-800",
179179
"flex",
180180
"justify-between",
181-
"items-center"
181+
"items-center",
182+
"space-x-4"
182183
)}
183184
>
184185
<h1 className="text-lg">視聴記録</h1>
185-
<div className={clsx("flex", "items-center", "space-x-2")}>
186+
<div
187+
className={clsx("flex", "items-center", "space-x-4", "grow")}
188+
style={{ maxWidth: "50vw" }}
189+
>
186190
<button
187191
className={clsx(
188192
"rounded-md",
189193
"bg-gray-900",
190194
"hover:bg-gray-800",
191195
"p-1",
192196
"cursor-pointer",
193-
"transition-colors"
197+
"transition-colors",
198+
"shrink-0"
194199
)}
195200
title="番組情報から取得"
196201
onClick={() => setLinkedAt(performance.now())}

src/miraktest-annict/components/SeachWorkForm.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export const SearchWorkForm: React.FC<{
6262
}, [ref])
6363

6464
return (
65-
<div className="relative" ref={ref}>
65+
<div className={clsx("relative", "grow")} ref={ref}>
6666
<form
67-
className={clsx("flex", "items-center", "justify-center", "space-x-2")}
67+
className={clsx("flex", "items-center", "justify-center", "space-x-8")}
6868
onSubmit={(e) => {
6969
e.preventDefault()
7070
setSearchTerm(localTerm || null)
@@ -79,7 +79,9 @@ export const SearchWorkForm: React.FC<{
7979
"rounded-md",
8080
"w-full",
8181
"text-gray-900",
82-
"pr-8"
82+
"pr-8",
83+
"grow",
84+
"max-w-6xl"
8385
)}
8486
value={localTerm}
8587
onChange={(e) => setLocalTerm(e.target.value)}

src/miraktest-annict/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ANNICT_META = {
3636
id: ANNICT_PLUGIN_ID,
3737
name: "Annict",
3838
author: "ci7lus",
39-
version: "0.3.4",
39+
version: "0.3.5",
4040
description: "視聴中の番組をAnnictで記録する",
4141
authorUrl: "https://github.com/ci7lus",
4242
url: "https://github.com/ci7lus/miraktest-plugins/tree/master/src/miraktest-annict",

0 commit comments

Comments
 (0)