mirror of
https://github.com/coalaura/whiskr.git
synced 2025-12-02 20:22:52 +00:00
fixes to files
This commit is contained in:
@@ -806,13 +806,21 @@ body:not(.loading) #loading {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.message .files {
|
.message .files {
|
||||||
background: #181926;
|
display: grid;
|
||||||
padding: 10px 12px;
|
grid-template-columns: repeat(4, 1fr);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
flex-wrap: wrap;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message.editing .files {
|
||||||
|
background: #181926;
|
||||||
|
padding: 7px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message .files .file {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.files .file {
|
.files .file {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ func NewStream(w http.ResponseWriter, ctx context.Context) (*Stream, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewChunk(typ ChunkType, data any) *Chunk {
|
func NewChunk(typ ChunkType, data any) *Chunk {
|
||||||
|
if str, ok := data.(string); ok {
|
||||||
|
data = CleanChunk(str)
|
||||||
|
}
|
||||||
|
|
||||||
return &Chunk{
|
return &Chunk{
|
||||||
Type: typ,
|
Type: typ,
|
||||||
Data: data,
|
Data: data,
|
||||||
|
|||||||
Reference in New Issue
Block a user