Compare commits
2 commits
d3dff302c5
...
1f800b6d4c
Author | SHA1 | Date | |
---|---|---|---|
|
1f800b6d4c | ||
|
b72a445e97 |
3 changed files with 7 additions and 4 deletions
|
@ -7,8 +7,11 @@
|
|||
|
||||
<style>
|
||||
.message {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow-x: none;
|
||||
word-break: break-all;
|
||||
padding: 1px var(--space-normplus) 1px var(--space-normplus);
|
||||
}
|
||||
|
||||
.message .edit-message {
|
||||
|
@ -32,11 +35,13 @@
|
|||
}
|
||||
|
||||
.author {
|
||||
flex-shrink: 0;
|
||||
font-weight: bold;
|
||||
margin-right: var(--space-xxs);
|
||||
margin-right: var(--space-xs);
|
||||
}
|
||||
|
||||
.edit-message {
|
||||
flex-shrink: 0;
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
|
||||
<style>
|
||||
.messages-container {
|
||||
padding: var(--space-normplus);
|
||||
padding-bottom: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
flex-grow: 0;
|
||||
|
|
|
@ -27,7 +27,7 @@ export default async function(method, endpoint, auth=true, body=null) {
|
|||
const res = await fetch(endpoint, options);
|
||||
return {
|
||||
success: true,
|
||||
json: await res.json(),
|
||||
json: res.status === 204 ? null : await res.json(),
|
||||
ok: res.ok,
|
||||
status: res.status
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue