Skip to content

Commit

Permalink
Timeline loading with gap
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Aug 14, 2024
1 parent 6210275 commit 09f8aab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UnisonShare/ContributionTimeline.elm
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ view appContext projectRef model =
|> Placeholder.view

viewLoading =
div [ class "loading-timeline" ]
div [ class "timeline-loading" ]
[ shape Placeholder.Large
, shape Placeholder.Small
, shape Placeholder.Medium
Expand Down
2 changes: 1 addition & 1 deletion src/UnisonShare/Ticket/TicketTimeline.elm
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ view appContext projectRef model =
|> Placeholder.view

viewLoading =
div [ class "loading-timeline" ]
div [ class "timeline-loading" ]
[ shape Placeholder.Large
, shape Placeholder.Small
, shape Placeholder.Medium
Expand Down
6 changes: 6 additions & 0 deletions src/css/unison-share/timeline.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
flex-direction: column;
gap: 1.5rem;

& .timeline-loading {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

& .timeline-event {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 09f8aab

Please sign in to comment.