From d1223eefa922313168a9d733e45c7c8e8a5367eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gwenae=CC=88l=20Gallon?=
Date: Thu, 9 Jun 2022 01:37:13 +0200
Subject: [PATCH] Fix directory divide li
---
components/layout/directory.tsx | 3 +--
styles/globals.css | 10 ++++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/components/layout/directory.tsx b/components/layout/directory.tsx
index 6597fab..8228404 100644
--- a/components/layout/directory.tsx
+++ b/components/layout/directory.tsx
@@ -74,7 +74,7 @@ export default function Directory({
{letter}
-
+
{users.map((user) => (
-
@@ -108,7 +108,6 @@ export default function Directory({
@{user.username}
-
diff --git a/styles/globals.css b/styles/globals.css
index 9749d81..1a590fc 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -1,4 +1,14 @@
@tailwind base;
+
+.directory-divide-y > li:not(:last-child):after {
+ content: '';
+ display: block;
+ width: calc(100% - 24px);
+ transform: translateX(24px);
+ height: 1px;
+ background: #333333;
+}
+
@tailwind components;
@tailwind utilities;