Chats: refactor ChatBox into its own component
This commit is contained in:
parent
d67d76bf3a
commit
e7c6862fd0
7 changed files with 25 additions and 16 deletions
Binary file not shown.
Binary file not shown.
BIN
app/soapbox/features/chats/components/chat_box.js
Normal file
BIN
app/soapbox/features/chats/components/chat_box.js
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -86,23 +86,12 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
|
||||||
|
|
||||||
&__actions {
|
.chat-box {
|
||||||
background: var(--foreground-color);
|
display: flex;
|
||||||
margin-top: auto;
|
flex: 1;
|
||||||
padding: 6px;
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
textarea {
|
|
||||||
width: 100%;
|
|
||||||
margin: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 6px;
|
|
||||||
background: var(--background-color);
|
|
||||||
border: 0;
|
|
||||||
border-radius: 6px;
|
|
||||||
color: var(--primary-text-color);
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -166,3 +155,23 @@
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-box {
|
||||||
|
&__actions {
|
||||||
|
background: var(--foreground-color);
|
||||||
|
margin-top: auto;
|
||||||
|
padding: 6px;
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 6px;
|
||||||
|
background: var(--background-color);
|
||||||
|
border: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
color: var(--primary-text-color);
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue