Skip to content

Commit

Permalink
Merge pull request #149 from aws-samples/fix-transcribe-page
Browse files Browse the repository at this point in the history
audio-to-text ページのデザインを微修正
  • Loading branch information
tbrand authored Nov 2, 2023
2 parents 9899d2a + a4c9a80 commit 831594f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/web/src/components/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Item: React.FC<ItemProps> = (props) => {
}, []);
return (
<Link
className={`hover:bg-aws-sky flex h-8 mt-0.5 items-center rounded p-2 ${
className={`hover:bg-aws-sky mt-0.5 flex h-8 items-center rounded p-2 ${
location.pathname === props.to && 'bg-aws-sky'
} ${props.className}`}
to={props.to}
Expand Down
12 changes: 4 additions & 8 deletions packages/web/src/pages/TranscribePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,16 @@ const TranscribePage: React.FC = () => {
<div className="col-span-12 col-start-1 mx-2 lg:col-span-10 lg:col-start-2 xl:col-span-10 xl:col-start-2">
<Card label="ファイルアップロード">
<input
className="block w-full cursor-pointer rounded-lg border border-gray-300 bg-gray-50
text-sm text-gray-900 file:mr-4 file:border-0 file:px-4 file:py-2 file:font-semibold
file:text-gray-700 focus:outline-none
dark:border-gray-600 dark:bg-gray-700
dark:text-gray-400 dark:placeholder:text-gray-400"
className="file:bg-aws-squid-ink block w-full cursor-pointer rounded-lg border
border-gray-400 text-sm text-gray-900 file:mr-4 file:cursor-pointer file:border-0
file:px-4 file:py-2 file:text-white focus:outline-none"
onChange={onChangeFile}
aria-describedby="file_input_help"
id="file_input"
type="file"
accept=".mp3, .mp4, .wav, .flac, .ogg, .amr, .webm"
ref={ref}></input>
<p
className="mt-1 text-sm text-gray-500 dark:text-gray-300"
id="file_input_help">
<p className="ml-0.5 mt-1 text-sm text-gray-500" id="file_input_help">
mp3, mp4, wav, flac, ogg, amr, webm ファイルが利用可能です
</p>
<div className="flex justify-end gap-3">
Expand Down

0 comments on commit 831594f

Please sign in to comment.