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

Image preview dialog #199

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Image preview dialog #199

merged 3 commits into from
Mar 28, 2024

Conversation

statefb
Copy link
Contributor

@statefb statefb commented Mar 27, 2024

Issue #, if available:

Description of changes:
Preview image dialog on message
image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@statefb statefb requested a review from wadabee March 27, 2024 06:18
onAfterLeave: () => void;
};

const ImagePreview: React.FC<ImagePreviewProps> = (props) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ModalDialogとほぼ同じなので、統一できないでしょうか?
titleonAfterLeaveの部分を改造すれば、共通化できそうな気がします

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

統一しました!

@@ -107,6 +115,13 @@ const ChatMessage: React.FC<Props> = (props) => {
);
}
})}
<ImagePreview
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメント位置が適切ではないですが・・・
以下のメッセージ入力欄のものも拡大表示できないでしょうか?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

拡大できるようにしました。全く同じスタイルをあてています

Copy link
Contributor

@wadabee wadabee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@wadabee wadabee merged commit 52b6d8f into main Mar 28, 2024
5 checks passed
@wadabee wadabee deleted the feature/image-modal branch March 28, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants