@@ -8,49 +8,9 @@ import introducingTabsVideo from "@/assets/help/introducing-tabs.mp4"
88import homeImage from "@/assets/help/home.png"
99import tabsImage from "@/assets/help/tabs.png"
1010
11- const helpIcon = (
12- < svg
13- width = "16"
14- height = "16"
15- viewBox = "0 0 16 16"
16- fill = "none"
17- xmlns = "http://www.w3.org/2000/svg"
18- aria-hidden = "true"
19- data-slot = "icon-svg"
20- >
21- < path
22- d = "M6.94235 10.5714V10.4854C6.94617 9.76302 7.01879 9.18777 7.16022 8.75968C7.30546 8.33158 7.50804 7.98567 7.76796 7.72193C8.02787 7.45819 8.34321 7.21548 8.71397 6.99379C8.93948 6.85619 9.14206 6.69374 9.32171 6.50645C9.50518 6.31916 9.64851 6.10511 9.75171 5.86431C9.85874 5.62351 9.91225 5.35404 9.91225 5.0559C9.91225 4.69661 9.82625 4.38509 9.65424 4.12136C9.48607 3.85762 9.26055 3.65504 8.9777 3.51362C8.69486 3.36837 8.38143 3.29575 8.03743 3.29575C7.73165 3.29575 7.43733 3.35882 7.15448 3.48495C6.87546 3.61108 6.6423 3.80984 6.45501 4.08122C6.26772 4.3526 6.15878 4.70425 6.12821 5.13617H4.56299C4.59357 4.47109 4.76557 3.9054 5.07899 3.43908C5.39242 2.96894 5.80522 2.61156 6.31741 2.36694C6.83341 2.12231 7.40675 2 8.03743 2C8.72161 2 9.31789 2.13378 9.82625 2.40134C10.3384 2.66507 10.734 3.0301 11.0131 3.49642C11.2959 3.96273 11.4373 4.49976 11.4373 5.1075C11.4373 5.53177 11.3724 5.914 11.2424 6.25418C11.1124 6.59436 10.9251 6.89823 10.6805 7.16579C10.4397 7.43335 10.1492 7.67033 9.80905 7.87673C9.48033 8.08313 9.21468 8.301 9.0121 8.53034C8.80952 8.75585 8.66237 9.02341 8.57063 9.33302C8.4789 9.64262 8.42921 10.0268 8.42156 10.4854V10.5714H6.94235ZM7.72782 14C7.43351 14 7.17933 13.8949 6.96528 13.6847C6.75506 13.4744 6.64994 13.2203 6.64994 12.9221C6.64994 12.6278 6.75506 12.3755 6.96528 12.1653C7.17933 11.9551 7.43351 11.85 7.72782 11.85C8.02214 11.85 8.27441 11.9551 8.48463 12.1653C8.69868 12.3755 8.8057 12.6278 8.8057 12.9221C8.8057 13.1209 8.75601 13.3024 8.65663 13.4668C8.55726 13.6273 8.4273 13.7573 8.26676 13.8567C8.10623 13.9522 7.92658 14 7.72782 14Z"
23- fill = "var(--v2-icon-icon-base)"
24- />
25- </ svg >
26- )
27-
28- const triggerClass =
29- "size-7 !rounded-full shrink-0 bg-v2-background-bg-base shadow-[var(--v2-elevation-button-neutral)]"
30-
3111// TODO: wire to changelog / seen-state when available
3212const showPopover = ( ) => true
3313
34- export function HelpButton ( ) {
35- const platform = usePlatform ( )
36-
37- return (
38- < a
39- href = "https://opencode.ai"
40- aria-label = "Open the OpenCode website"
41- data-component = "icon-button-v2"
42- data-size = "large"
43- class = { `${ triggerClass } fixed bottom-5 right-5 z-50 flex items-center justify-center` }
44- onClick = { ( event ) => {
45- event . preventDefault ( )
46- platform . openLink ( event . currentTarget . href )
47- } }
48- >
49- { helpIcon }
50- </ a >
51- )
52- }
53-
5414// can remove this after the tabs rollout has been out for a while
5515export function TabsInfoPopup ( ) {
5616 const settings = useSettings ( )
@@ -61,7 +21,7 @@ export function TabsInfoPopup() {
6121 < Drawer open = { drawerOpen ( ) } onOpenChange = { setDrawerOpen } side = "right" >
6222 < Show when = { settings . general . shouldDisplayTabsToast ( ) } >
6323 < div
64- class = "fixed bottom-14 right-5 z-50 h-[240px] w-[192px] rounded-[8px] bg-v2-background-bg-base p-1 shadow-[var(--v2-elevation-floating)]"
24+ class = "fixed bottom-5 right-5 z-50 h-[240px] w-[192px] rounded-[8px] bg-v2-background-bg-base p-1 shadow-[var(--v2-elevation-floating)]"
6525 aria-label = "Introducing Tabs. Organize your work and active sessions with tabs"
6626 >
6727 < button
0 commit comments