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
9eea0434
Commit
9eea0434
authored
Apr 01, 2024
by
Alejandro Celaya
Committed by
Alejandro Celaya
Apr 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust pending updates notification alignment
parent
e2e65a67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
SidebarTabs.tsx
src/sidebar/components/SidebarTabs.tsx
+1
-1
SidebarView.tsx
src/sidebar/components/SidebarView.tsx
+10
-1
No files found.
src/sidebar/components/SidebarTabs.tsx
View file @
9eea0434
...
...
@@ -154,7 +154,7 @@ function SidebarTabs({
'space-y-3 pb-[9px]'
,
)
}
>
<
div
className=
"flex gap-x-6 theme-clean:ml-[15px]"
role=
"tablist"
>
<
div
className=
"flex gap-x-6 theme-clean:ml-[15px]
mt-1
"
role=
"tablist"
>
<
Tab
count=
{
annotationCount
}
isWaitingToAnchor=
{
isWaitingToAnchorAnnotations
}
...
...
src/sidebar/components/SidebarView.tsx
View file @
9eea0434
import
classnames
from
'classnames'
;
import
{
useEffect
,
useRef
}
from
'preact/hooks'
;
import
{
tabForAnnotation
}
from
'../helpers/tabs'
;
...
...
@@ -146,7 +147,15 @@ function SidebarView({
)
}
{
!
hasContentError
&&
<
SidebarTabs
isLoading=
{
isLoading
}
/>
}
{
pendingUpdatesNotification
&&
(
<
div
className=
"fixed z-1 right-2 top-12"
>
<
div
className=
{
classnames
(
'fixed z-1'
,
// Setting 9px to the right instead of some standard tailwind size,
// so that it matches the padding of the sidebar's container.
// DEFAULT `.container` padding is defined in tailwind.conf.mjs
'right-[9px] top-12'
,
)
}
>
<
PendingUpdatesNotification
/>
</
div
>
)
}
...
...
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