mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
Refine issue chat activity and message chrome
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
3fea60c04c
commit
f593e116c1
7 changed files with 446 additions and 167 deletions
|
|
@ -20,6 +20,7 @@ export function OutputFeedbackButtons({
|
|||
termsUrl = null,
|
||||
onVote,
|
||||
rightSlot,
|
||||
inline = false,
|
||||
}: {
|
||||
activeVote?: FeedbackVoteValue | null;
|
||||
disabled?: boolean;
|
||||
|
|
@ -27,6 +28,7 @@ export function OutputFeedbackButtons({
|
|||
termsUrl?: string | null;
|
||||
onVote: (vote: FeedbackVoteValue, options?: { allowSharing?: boolean; reason?: string }) => Promise<void>;
|
||||
rightSlot?: React.ReactNode;
|
||||
inline?: boolean;
|
||||
}) {
|
||||
const [pendingVote, setPendingVote] = useState<{
|
||||
vote: FeedbackVoteValue;
|
||||
|
|
@ -109,7 +111,10 @@ export function OutputFeedbackButtons({
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="mt-3 flex items-center gap-2 border-t border-border/60 pt-3">
|
||||
<div className={cn(
|
||||
"flex items-center gap-2",
|
||||
inline ? "justify-end" : "mt-3 border-t border-border/60 pt-3",
|
||||
)}>
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue