aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-10-06 19:12:32 -0300
committerLibravatar Renard 2019-10-06 19:12:32 -0300
commit00c71da0c32253b3dfda468e1dd66dc1127fed82 (patch)
tree10ecf59a9a3d75aa216f16d4784851d9719e2a28
parent6d542fc2ecb4bc97038e104d5541100772540676 (diff)
downloadbai-client-00c71da0c32253b3dfda468e1dd66dc1127fed82.tar.gz
bai-client-00c71da0c32253b3dfda468e1dd66dc1127fed82.tar.xz
bai-client-00c71da0c32253b3dfda468e1dd66dc1127fed82.zip
Threadlist fixes
-rw-r--r--src/App.css8
-rw-r--r--src/ThreadList.js8
2 files changed, 13 insertions, 3 deletions
diff --git a/src/App.css b/src/App.css
index 771c2c9..ecd145d 100644
--- a/src/App.css
+++ b/src/App.css
@@ -197,4 +197,12 @@
display: block !important;
margin-top: 1em;
margin-bottom: 1em;
+}
+
+.ui.divided.items>.item.inverted:first-child {
+ border-top: none;
+}
+
+.ui.divided.items>.item.inverted {
+ border-top: 1px solid rgba(49, 50, 51, 1);
} \ No newline at end of file
diff --git a/src/ThreadList.js b/src/ThreadList.js
index 56f9ab2..6069157 100644
--- a/src/ThreadList.js
+++ b/src/ThreadList.js
@@ -48,8 +48,8 @@ class ThreadList extends Component {
<Item.Group divided>
{threadList.map((thread, index) => {
return (
- <Item key={index}>
- {currentBoard.allow_images === 1 && (
+ <Item key={index} className={nightMode ? "inverted" : ""}>
+ {currentBoard.allow_images === 1 && thread.thumb !== "" && (
<Item.Image
size="tiny"
src={`https://bienvenidoainternet.org/${dir}/thumb/${thread.thumb}`}
@@ -59,7 +59,9 @@ class ThreadList extends Component {
<Item.Header
as={Link}
to={`/${dir}/read/${thread.id}`}
- className={nightMode && "inverted"}
+ className={
+ nightMode ? "threadTitle inverted" : "threadTitle"
+ }
>
{thread.subject}
</Item.Header>