mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	feat: update log table style
This commit is contained in:
		@@ -497,9 +497,7 @@ const LogsTable = () => {
 | 
			
		||||
                    {isAdminUser && (
 | 
			
		||||
                      <Table.Cell>
 | 
			
		||||
                        {log.username ? (
 | 
			
		||||
                          <Label basic size={'tiny'}>
 | 
			
		||||
                            {log.username}
 | 
			
		||||
                          </Label>
 | 
			
		||||
                          <Label basic>{log.username}</Label>
 | 
			
		||||
                        ) : (
 | 
			
		||||
                          ''
 | 
			
		||||
                        )}
 | 
			
		||||
 
 | 
			
		||||
@@ -82,7 +82,7 @@ export function renderColorLabel(text) {
 | 
			
		||||
  }
 | 
			
		||||
  let index = Math.abs(hash % colors.length);
 | 
			
		||||
  return (
 | 
			
		||||
    <Label basic size={'tiny'} color={colors[index]}>
 | 
			
		||||
    <Label basic color={colors[index]}>
 | 
			
		||||
      {text}
 | 
			
		||||
    </Label>
 | 
			
		||||
  );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user