mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 18:18:06 +08:00 
			
		
		
		
	 84eaa60ec9
			
		
	
	84eaa60ec9
	
	
	
		
			
			* Initial plan
* Add static class names to UI elements for easier customization
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
* Add unique DOM element IDs for easier customization targeting
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
* Remove duplicate class names, keep only IDs for UI element targeting
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
* Revert chat input field ID to original value
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
* Remove unnecessary nested spans and revert Button ID to original value
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
* Standardize ID names to follow owncast-{element-description}-{type} pattern
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: gabek <414923+gabek@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			520 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			520 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { FC } from 'react';
 | |
| import styles from './ChatActionMessage.module.scss';
 | |
| 
 | |
| /* eslint-disable react/no-danger */
 | |
| export type ChatActionMessageProps = {
 | |
|   body: string;
 | |
| };
 | |
| 
 | |
| // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | |
| export const ChatActionMessage: FC<ChatActionMessageProps> = ({ body }) => (
 | |
|   <div className={styles.chatActionPadding}>
 | |
|     <div
 | |
|       id="owncast-chat-action-message-text"
 | |
|       dangerouslySetInnerHTML={{ __html: body }}
 | |
|       className={styles.chatAction}
 | |
|     />
 | |
|   </div>
 | |
| );
 |