style: 处理一部分亮色模式下的样式

pull/13/head
moonrailgun 4 years ago
parent be788f4619
commit e3010e7d31

@ -61,7 +61,7 @@ export const ChatInputBox: React.FC<ChatInputBoxProps> = React.memo((props) => {
return ( return (
<ChatInputActionContext.Provider value={{ sendMsg: props.onSendMsg }}> <ChatInputActionContext.Provider value={{ sendMsg: props.onSendMsg }}>
<div className="px-4 py-2"> <div className="px-4 py-2">
<div className="bg-gray-600 flex rounded-md items-center"> <div className="bg-white dark:bg-gray-600 flex rounded-md items-center">
<Input <Input
ref={inputRef} ref={inputRef}
className="outline-none shadow-none border-0 py-2.5 px-4 flex-1" className="outline-none shadow-none border-0 py-2.5 px-4 flex-1"

@ -18,7 +18,7 @@ export const GroupPanelItem: React.FC<{
<Link className="block" to={to}> <Link className="block" to={to}>
<div <div
className={clsx( className={clsx(
'w-full hover:bg-white hover:bg-opacity-20 cursor-pointer text-white rounded px-1 h-8 flex items-center text-base group', 'w-full hover:bg-white hover:bg-opacity-20 cursor-pointer text-gray-900 dark:text-white rounded px-1 h-8 flex items-center text-base group',
{ {
'bg-white bg-opacity-20': isActive, 'bg-white bg-opacity-20': isActive,
} }
@ -26,7 +26,10 @@ export const GroupPanelItem: React.FC<{
> >
<div className="flex items-center justify-center px-1 mr-1">{icon}</div> <div className="flex items-center justify-center px-1 mr-1">{icon}</div>
<Typography.Text className="flex-1 text-white" ellipsis={true}> <Typography.Text
className="flex-1 text-gray-900 dark:text-white"
ellipsis={true}
>
{name} {name}
</Typography.Text> </Typography.Text>

@ -12,7 +12,7 @@
border: 0; border: 0;
margin: 2px; margin: 2px;
padding: 2px 8px; padding: 2px 8px;
@apply text-gray-800 dark:text-gray-200 bg-opacity-0 bg-black dark:bg-white; @apply text-gray-800 dark:text-gray-200 bg-black bg-opacity-0 dark:bg-white dark:bg-opacity-0;
&.ant-tabs-tab-active, &.ant-tabs-tab-active,
&:hover, &:hover,

@ -154,7 +154,7 @@ export const ModalCreateGroup: React.FC = React.memo(() => {
<Button <Button
type="link" type="link"
onClick={handleBack} onClick={handleBack}
className="text-white font-bold" className="text-gray-600 dark:text-white font-bold"
> >
{t('返回')} {t('返回')}
</Button> </Button>

@ -42,7 +42,7 @@ export const PluginStoreItem: React.FC<{
}, [manifest]); }, [manifest]);
return ( return (
<div className="rounded-md flex w-80 h-36 bg-black bg-opacity-40 py-2 px-3"> <div className="rounded-md flex w-80 h-36 bg-white dark:bg-black bg-opacity-40 shadow py-2 px-3">
<div className="flex w-full"> <div className="flex w-full">
<div className="mr-2"> <div className="mr-2">
<Avatar shape="square" src={manifest.icon} name={manifest.label} /> <Avatar shape="square" src={manifest.icon} name={manifest.label} />
@ -51,7 +51,7 @@ export const PluginStoreItem: React.FC<{
<div className="flex flex-col flex-1"> <div className="flex flex-col flex-1">
<div className="font-bold">{manifest.label}</div> <div className="font-bold">{manifest.label}</div>
<div className="text-xs text-gray-300 text-opacity-50"> <div className="text-xs text-gray-700 dark:text-gray-300 text-opacity-50">
{manifest.name} {manifest.name}
</div> </div>

@ -10,7 +10,7 @@ export const SettingBtn: React.FC = React.memo(() => {
return ( return (
<Icon <Icon
className="text-3xl text-white cursor-pointer" className="text-3xl text-gray-600 dark:text-white cursor-pointer"
icon="mdi:dots-horizontal" icon="mdi:dots-horizontal"
onClick={handleClick} onClick={handleClick}
/> />

Loading…
Cancel
Save