Skip to content

Commit 42c312a

Browse files
committed
Fix breadcrumb sorting
1 parent c29a9ac commit 42c312a

File tree

2 files changed

+12
-63
lines changed

2 files changed

+12
-63
lines changed

lib/error_tracker/web/live/show.html.heex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
<div class="relative overflow-x-auto shadow-md sm:rounded-lg ring-1 ring-gray-900">
3030
<table class="w-full text-sm text-gray-400 table-fixed">
3131
<tr
32-
:for={{breadcrumb, index} <- Enum.with_index(@occurrence.breadcrumbs)}
32+
:for={
33+
{breadcrumb, index} <-
34+
@occurrence.breadcrumbs |> Enum.reverse() |> Enum.with_index()
35+
}
3336
class="border-b bg-gray-400/10 border-gray-900 last:border-b-0"
3437
>
3538
<td class="w-11 pl-2 py-4 font-medium text-white relative text-right">

priv/static/app.css

Lines changed: 8 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,10 @@ select {
885885
width: 2.5rem;
886886
}
887887

888+
.w-11 {
889+
width: 2.75rem;
890+
}
891+
888892
.w-28 {
889893
width: 7rem;
890894
}
@@ -905,42 +909,6 @@ select {
905909
width: 100%;
906910
}
907911

908-
.w-16 {
909-
width: 4rem;
910-
}
911-
912-
.w-12 {
913-
width: 3rem;
914-
}
915-
916-
.w-8 {
917-
width: 2rem;
918-
}
919-
920-
.w-7 {
921-
width: 1.75rem;
922-
}
923-
924-
.w-6 {
925-
width: 1.5rem;
926-
}
927-
928-
.w-\[5rem\] {
929-
width: 5rem;
930-
}
931-
932-
.w-11 {
933-
width: 2.75rem;
934-
}
935-
936-
.min-w-12 {
937-
min-width: 3rem;
938-
}
939-
940-
.table-auto {
941-
table-layout: auto;
942-
}
943-
944912
.table-fixed {
945913
table-layout: fixed;
946914
}
@@ -1165,6 +1133,10 @@ select {
11651133
padding-bottom: 11.5px;
11661134
}
11671135

1136+
.pl-2 {
1137+
padding-left: 0.5rem;
1138+
}
1139+
11681140
.pr-2 {
11691141
padding-right: 0.5rem;
11701142
}
@@ -1173,10 +1145,6 @@ select {
11731145
padding-right: 1.25rem;
11741146
}
11751147

1176-
.pl-2 {
1177-
padding-left: 0.5rem;
1178-
}
1179-
11801148
.text-left {
11811149
text-align: left;
11821150
}
@@ -1362,32 +1330,10 @@ select {
13621330
border-radius: 4px;
13631331
}
13641332

1365-
.first\:border-y-0:first-child {
1366-
border-top-width: 0px;
1367-
border-bottom-width: 0px;
1368-
}
1369-
1370-
.first\:border-t-0:first-child {
1371-
border-top-width: 0px;
1372-
}
1373-
13741333
.last\:border-b-0:last-child {
13751334
border-bottom-width: 0px;
13761335
}
13771336

1378-
.first-of-type\:border-y-0:first-of-type {
1379-
border-top-width: 0px;
1380-
border-bottom-width: 0px;
1381-
}
1382-
1383-
.first-of-type\:border-t-0:first-of-type {
1384-
border-top-width: 0px;
1385-
}
1386-
1387-
.first-of-type\:border-b-0:first-of-type {
1388-
border-bottom-width: 0px;
1389-
}
1390-
13911337
.last-of-type\:border-b-0:last-of-type {
13921338
border-bottom-width: 0px;
13931339
}

0 commit comments

Comments
 (0)