try to make sticky table headers (wip)
This commit is contained in:
@ -142,14 +142,14 @@ export default function EventLogList() {
|
||||
))}
|
||||
</div>
|
||||
<div className="mt-4 w-full overflow-x-auto">
|
||||
<table className="w-full table-auto">
|
||||
<thead>
|
||||
<table className="w-full table-auto border-collapse">
|
||||
<thead className="bg-gray-100">
|
||||
<tr>
|
||||
<th className="px-4 py-2 text-left">На</th>
|
||||
<th className="px-4 py-2 text-left">От</th>
|
||||
<th className="px-4 py-2 text-left">Дата</th>
|
||||
<th className="px-4 py-2 text-left">Смяна</th>
|
||||
<th className="px-4 py-2 text-left">Събитие</th>
|
||||
<th className="px-4 py-2 text-left sticky top-0 z-10 bg-gray-100 border">На</th>
|
||||
<th className="px-4 py-2 text-left sticky top-0 z-10 bg-gray-100 border">От</th>
|
||||
<th className="px-4 py-2 text-left sticky top-0 z-10 bg-gray-100 border">Дата</th>
|
||||
<th className="px-4 py-2 text-left sticky top-0 z-10 bg-gray-100 border">Смяна</th>
|
||||
<th className="px-4 py-2 text-left sticky top-0 z-10 bg-gray-100 border">Събитие</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
Reference in New Issue
Block a user