Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
46045480
Commit
46045480
authored
Apr 27, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert NotebookResultCount to tailwind
parent
cea371d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
29 deletions
+11
-29
NotebookResultCount.js
src/sidebar/components/NotebookResultCount.js
+11
-9
NotebookResultCount.scss
src/styles/sidebar/components/NotebookResultCount.scss
+0
-19
_index.scss
src/styles/sidebar/components/_index.scss
+0
-1
No files found.
src/sidebar/components/NotebookResultCount.js
View file @
46045480
...
...
@@ -38,26 +38,28 @@ function NotebookResultCount({
const
threadCount
=
rootThread
.
children
.
length
;
return
(
<
div
className
=
"
hyp-u-layout-row NotebookResultCount
"
>
<
div
className
=
"
flex gap-x-1 leading-none
"
>
{
isLoading
&&
<
Spinner
size
=
"small"
/>
}
{
!
isLoading
&&
(
<
h2
>
{
!
hasResults
&&
<
s
trong
>
No
results
<
/strong
>
}
<
h2
className
=
"font-bold"
>
{
!
hasResults
&&
<
s
pan
>
No
results
<
/span
>
}
{
hasResults
&&
isFiltered
&&
(
<
s
trong
>
<
s
pan
>
{
matchCount
}
{
matchCount
===
1
?
'result'
:
'results'
}
<
/s
trong
>
<
/s
pan
>
)}
{
hasResults
&&
!
isFiltered
&&
(
<
s
trong
>
<
s
pan
>
{
threadCount
}
{
threadCount
===
1
?
'thread'
:
'threads'
}
<
/s
trong
>
<
/s
pan
>
)}
<
/h2
>
)}
{
hasForcedVisible
&&
<
h3
>
(
and
{
forcedVisibleCount
}
more
)
<
/h3>
}
{
hasForcedVisible
&&
(
<
h3
className
=
"italic font-normal"
>
(
and
{
forcedVisibleCount
}
more
)
<
/h3
>
)}
{
!
isFiltered
&&
hasResults
&&
(
<
h3
>
<
h3
className
=
"italic font-normal"
>
({
visibleCount
}
{
visibleCount
===
1
?
'annotation'
:
'annotations'
})
<
/h3
>
)}
...
...
src/styles/sidebar/components/NotebookResultCount.scss
deleted
100644 → 0
View file @
cea371d8
@use
'../../variables'
as
var
;
@use
'../../mixins/layout'
;
.NotebookResultCount
{
@include
layout
.
horizontal-rhythm
;
// Normalize line height to ensure vertical stability (no jumping around)
line-height
:
1
;
&
h2
{
strong
{
font-weight
:
bold
;
font-style
:
normal
;
}
}
&
h3
{
font-style
:
italic
;
}
}
src/styles/sidebar/components/_index.scss
View file @
46045480
...
...
@@ -15,7 +15,6 @@
@use
'./Menu'
;
@use
'./MenuItem'
;
@use
'./MenuSection'
;
@use
'./NotebookResultCount'
;
@use
'./PaginationNavigation'
;
@use
'./StyledText'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment