Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI を微修正 (Web コンテンツ抽出・画像生成) #453

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/web/src/pages/GenerateImagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ const GenerateImagePage: React.FC = () => {
setSelectedImageIndex(0);
generateImage(prompt, negativePrompt);
}}
loading={generating || loadingChat}>
loading={generating || loadingChat}
disabled={prompt.length === 0}>
生成
</Button>

Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/pages/WebContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ const WebContent: React.FC = () => {

<div className="mt-2 rounded border border-black/30 p-1.5">
<Markdown>{typingTextOutput}</Markdown>
{!loading && content === '' && (
{!loading && !fetching && content === '' && (
<div className="text-gray-500">
抽出された文章がここに表示されます
</div>
)}
{loading && (
{(loading || fetching) && (
<div className="border-aws-sky size-5 animate-spin rounded-full border-4 border-t-transparent"></div>
)}
<div className="flex w-full justify-end">
Expand Down
Loading