mirror of
				https://github.com/ItzCrazyKns/Perplexica.git
				synced 2025-11-03 20:28:14 +00:00 
			
		
		
		
	update(MessageSources): tune the source panel and inner block background color and border color
This commit is contained in:
		@@ -83,14 +83,14 @@ const MessageSources = ({ sources }: { sources: Document[] }) => {
 | 
			
		||||
                leaveFrom="opacity-100 scale-200"
 | 
			
		||||
                leaveTo="opacity-0 scale-95"
 | 
			
		||||
              >
 | 
			
		||||
                <Dialog.Panel className="w-full max-w-md transform rounded-2xl bg-light-100 dark:bg-dark-100 border border-light-200 dark:border-dark-200 p-6 text-left align-middle shadow-xl transition-all">
 | 
			
		||||
                <Dialog.Panel className="w-full max-w-md transform rounded-2xl bg-light-secondary dark:bg-dark-secondary border border-light-200 dark:border-dark-200 p-6 text-left align-middle shadow-xl transition-all">
 | 
			
		||||
                  <Dialog.Title className="text-lg font-medium leading-6 dark:text-white">
 | 
			
		||||
                    Sources
 | 
			
		||||
                  </Dialog.Title>
 | 
			
		||||
                  <div className="grid grid-cols-2 gap-2 overflow-auto max-h-[300px] mt-2 pr-2">
 | 
			
		||||
                    {sources.map((source, i) => (
 | 
			
		||||
                      <a
 | 
			
		||||
                        className="bg-light-100 hover:bg-light-200 dark:bg-dark-100 dark:hover:bg-dark-200 border border-light-200 dark:border-dark-200 transition duration-200 rounded-lg p-3 flex flex-col space-y-2 font-medium"
 | 
			
		||||
                        className="bg-light-secondary hover:bg-light-200 dark:bg-dark-secondary dark:hover:bg-dark-200 border border-light-200 dark:border-dark-200 transition duration-200 rounded-lg p-3 flex flex-col space-y-2 font-medium"
 | 
			
		||||
                        key={i}
 | 
			
		||||
                        href={source.metadata.url}
 | 
			
		||||
                        target="_blank"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user