Skip to content

Commit

Permalink
style: update some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed Jun 16, 2023
1 parent 15564c2 commit 308d391
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default (props: Props) => {
return (
<Modal bindValue={showConfirmModal} direction="bottom" closeBtnClass="hidden" >
<div class="max-h-[70vh] w-full">
<div class="grid w-full max-w-lg scale-100 gap-4 border-base sm:border bg-white dark:bg-zinc-900/90 dark:backdrop-blur-lg p-6 opacity-100 shadow-lg sm:rounded-lg md:w-full">
<div class="grid w-full max-w-lg scale-100 gap-4 border-base sm:border bg-white dark:bg-zinc-900/90 dark:backdrop-blur-lg p-4 opacity-100 shadow-lg sm:rounded-lg md:w-full">
<div class="flex flex-col space-y-2 text-center sm:text-left"><h2 id="radix-:rl:" class="text-lg font-semibold">{props.title}</h2><p id="radix-:rm:" class="text-sm text-muted-foreground">{props.description}</p></div>
<div class="flex flex-col-reverse sm:flex-row sm:justify-end gap-2">
<button class="button" onClick={() => props.onCancel()}>{t('conversations.confirm.cancel')}</button>
Expand Down
2 changes: 0 additions & 2 deletions src/components/ui/ShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export default () => {
const [imageBuffer, setImageBuffer] = createSignal<Blob>()
const [loading, setLoading] = createSignal(false)

console.log($currentConversationId(), messages)

const [copied, copy] = useClipboardCopy(messages.map(item => `${item.role}: ${item.content}`).join('\n'))

const copyImage = () => {
Expand Down
4 changes: 2 additions & 2 deletions unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default defineConfig({
'hv-foreground': 'transition-opacity cursor-pointer op-70 hover:op-100',
'input-base': 'bg-transparent placeholder:op-50 dark:placeholder:op-20 focus:(ring-0 outline-none) resize-none',
'button': 'mt-4 px-3 py-2 text-xs border border-base rounded-lg hv-base hover:border-base-100',
'emerald-button': 'mt-4 px-3 py-2 text-xs border rounded-lg text-light-400 border-emerald-600 bg-emerald-600 hover-bg-emerald-700 hover-border-emerald-700',
'emerald-light-button': 'mt-4 px-3 py-2 text-xs border rounded-lg text-emerald-400 bg-emerald/12 border-emerald-400 hover-bg-emerald-600 hover-border-emerald-600 hover-text-light-700',
'emerald-button': 'button bg-emerald-600 !hover:bg-emerald-700 text-white',
'emerald-light-button': 'button text-emerald-400 bg-emerald/12 !border-emerald-400 !hover-bg-emerald-600 !hover-border-emerald-600 !hover-text-light-700',
'max-w-base': 'max-w-3xl mx-auto',
'text-error': 'text-red-700 dark:text-red-400/80',
'border-error': 'border border-red-700 dark:border-red-400/80',
Expand Down

0 comments on commit 308d391

Please sign in to comment.