Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions app/assets/stylesheets/load.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
.loader-s {
width: fit-content;
font-size: 40px;
font-family: monospace;
font-weight: bold;
text-transform: uppercase;
color: #0000;
-webkit-text-stroke: 1px #000;
--g: conic-gradient(#000 0 0) no-repeat text;
background:
var(--g) 0,
var(--g) 1ch,
var(--g) 2ch,
var(--g) 3ch,
var(--g) 4ch,
var(--g) 5ch,
var(--g) 6ch;
background-position-y: 100%, 0;
animation: l16 2s linear infinite alternate;
}
.loader-s:before {
content: 'Loading';
}
@keyframes l16 {
0% {
background-size:
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0;
}
14.28% {
background-size:
1ch 100%,
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0;
}
28.57% {
background-size:
1ch 100%,
1ch 100%,
1ch 0,
1ch 0,
1ch 0,
1ch 0,
1ch 0;
}
42.85% {
background-size:
1ch 100%,
1ch 100%,
1ch 100%,
1ch 0,
1ch 0,
1ch 0,
1ch 0;
}
57.14% {
background-size:
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 0,
1ch 0,
1ch 0;
}
71.43% {
background-size:
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 0,
1ch 0;
}
85.71% {
background-size:
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 0;
}
100% {
background-size:
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%,
1ch 100%;
}
}
3 changes: 1 addition & 2 deletions app/javascript/components/command_bar/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import React from 'react'
import { KBarResults, useMatches } from 'kbar'
import { Guide } from './search/guide'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this newline back please?

export function RenderResults() {
const { results, rootActionId } = useMatches()
return (
Expand Down Expand Up @@ -38,7 +37,7 @@ export function RenderResults() {
) : item == 'search_guide' || item.id?.startsWith('results:') ? (
<Guide />
) : (
'Loading...'
<div className="loader-s"></div>
)}
</div>
) : (
Expand Down