Improve diff viewer color styling for better theme support (Vibe Kanban) (#1894)
* improve diff styles * diffs * review comment styles
This commit is contained in:
committed by
GitHub
parent
bd09ba8bd0
commit
5ee40bf322
@@ -43,27 +43,29 @@ export function CommentWidgetLine({
|
||||
}, [value, draft, setDraft, widgetKey, onSave, addComment]);
|
||||
|
||||
return (
|
||||
<div className="p-base rounded-sm border border-brand bg-brand/10 font-sans">
|
||||
<WYSIWYGEditor
|
||||
value={value}
|
||||
onChange={setValue}
|
||||
placeholder={t('comments.addPlaceholder')}
|
||||
className="w-full text-normal min-h-[60px]"
|
||||
projectId={projectId}
|
||||
onCmdEnter={handleSave}
|
||||
autoFocus
|
||||
/>
|
||||
<div className="mt-half flex gap-half">
|
||||
<PrimaryButton
|
||||
variant="default"
|
||||
onClick={handleSave}
|
||||
disabled={!value.trim()}
|
||||
>
|
||||
{t('comments.addReviewComment')}
|
||||
</PrimaryButton>
|
||||
<PrimaryButton variant="secondary" onClick={handleCancel}>
|
||||
{t('actions.cancel')}
|
||||
</PrimaryButton>
|
||||
<div className="p-base bg-panel font-sans text-base">
|
||||
<div className="p-base rounded-sm bg-brand/20 border border-brand">
|
||||
<WYSIWYGEditor
|
||||
value={value}
|
||||
onChange={setValue}
|
||||
placeholder={t('comments.addPlaceholder')}
|
||||
className="w-full text-normal min-h-[60px]"
|
||||
projectId={projectId}
|
||||
onCmdEnter={handleSave}
|
||||
autoFocus
|
||||
/>
|
||||
<div className="mt-half flex gap-half">
|
||||
<PrimaryButton
|
||||
variant="default"
|
||||
onClick={handleSave}
|
||||
disabled={!value.trim()}
|
||||
>
|
||||
{t('comments.addReviewComment')}
|
||||
</PrimaryButton>
|
||||
<PrimaryButton variant="secondary" onClick={handleCancel}>
|
||||
{t('actions.cancel')}
|
||||
</PrimaryButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -41,41 +41,45 @@ export function ReviewCommentRenderer({
|
||||
|
||||
if (isEditing) {
|
||||
return (
|
||||
<div className="p-base rounded-sm border border-brand bg-brand/10 font-sans">
|
||||
<WYSIWYGEditor
|
||||
value={editText}
|
||||
onChange={setEditText}
|
||||
placeholder={t('comments.editPlaceholder')}
|
||||
className="w-full text-normal min-h-[60px]"
|
||||
projectId={projectId}
|
||||
onCmdEnter={handleSave}
|
||||
autoFocus
|
||||
/>
|
||||
<div className="mt-half flex gap-half">
|
||||
<PrimaryButton
|
||||
variant="default"
|
||||
onClick={handleSave}
|
||||
disabled={!editText.trim()}
|
||||
>
|
||||
{t('actions.saveChanges')}
|
||||
</PrimaryButton>
|
||||
<PrimaryButton variant="tertiary" onClick={handleCancel}>
|
||||
{t('actions.cancel')}
|
||||
</PrimaryButton>
|
||||
<div className="p-base bg-panel font-sans text-base">
|
||||
<div className="p-base rounded-sm bg-brand/20 border border-brand">
|
||||
<WYSIWYGEditor
|
||||
value={editText}
|
||||
onChange={setEditText}
|
||||
placeholder={t('comments.editPlaceholder')}
|
||||
className="w-full text-sm text-normal min-h-[60px]"
|
||||
projectId={projectId}
|
||||
onCmdEnter={handleSave}
|
||||
autoFocus
|
||||
/>
|
||||
<div className="mt-half flex gap-half">
|
||||
<PrimaryButton
|
||||
variant="default"
|
||||
onClick={handleSave}
|
||||
disabled={!editText.trim()}
|
||||
>
|
||||
{t('actions.saveChanges')}
|
||||
</PrimaryButton>
|
||||
<PrimaryButton variant="tertiary" onClick={handleCancel}>
|
||||
{t('actions.cancel')}
|
||||
</PrimaryButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="p-base rounded-sm border border-brand bg-brand/10 font-sans">
|
||||
<WYSIWYGEditor
|
||||
value={comment.text}
|
||||
disabled={true}
|
||||
className="text-sm"
|
||||
onEdit={handleEdit}
|
||||
onDelete={handleDelete}
|
||||
/>
|
||||
<div className="p-base bg-panel font-sans text-base">
|
||||
<div className="p-base rounded-sm bg-brand/20 border border-brand">
|
||||
<WYSIWYGEditor
|
||||
value={comment.text}
|
||||
disabled={true}
|
||||
className="text-sm"
|
||||
onEdit={handleEdit}
|
||||
onDelete={handleDelete}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user