webui, fixes
This commit is contained in:
7
example/webui/elements.go
Normal file
7
example/webui/elements.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func chatDiv(content string, color string) string {
|
||||
return fmt.Sprintf(`<div class="p-2 my-2 rounded bg-%s-100">%s</div>`, color, htmlIfy(content))
|
||||
}
|
||||
Reference in New Issue
Block a user