style chat grid

This commit is contained in:
marlon-erler
2024-07-20 13:30:01 +02:00
parent d9f0f400f8
commit 6b269719a1
6 changed files with 79 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
.chat-entry {
position: relative;
display: flex;
align-items: flex-end !important;
justify-content: start;
height: 8rem;
overflow: hidden;
}
.chat-entry h2 {
margin: 0px;
}
.chat-entry .shadow {
position: absolute;
left: -15px;
bottom: -45px;
font-size: 6rem;
opacity: 0.1;
white-space: nowrap;
}
+5 -2
View File
@@ -1,12 +1,15 @@
import "./chatEntry.css";
import * as React from "bloatless-react";
import { ChatModel } from "../../Model/chatModel";
export function ChatEntry(chatModel: ChatModel) {
return (
<div class="tile flex-column justify-end align-start">
<button class="chat-entry tile">
<span class="shadow">{chatModel.info.primaryChannel}</span>
<h2>{chatModel.info.primaryChannel}</h2>
</div>
</button>
);
}