@@ -21,7 +21,6 @@ import {
21
21
} from "@cocalc/frontend/components/sortable-tabs" ;
22
22
import StaticMarkdown from "@cocalc/frontend/editors/slate/static-markdown" ;
23
23
import { IS_MOBILE } from "@cocalc/frontend/feature" ;
24
- import { WebsocketIndicator } from "@cocalc/frontend/project/websocket/websocket-indicator" ;
25
24
import { ProjectAvatarImage } from "@cocalc/frontend/projects/project-row" ;
26
25
import { KUCALC_COCALC_COM } from "@cocalc/util/db-schema/site-defaults" ;
27
26
import { COMPUTE_STATES } from "@cocalc/util/schema" ;
@@ -75,22 +74,8 @@ function ProjectTab({ project_id }: ProjectTabProps) {
75
74
"projects" ,
76
75
"public_project_titles" ,
77
76
) ;
78
- const project_websockets = useTypedRedux ( "projects" , "project_websockets" ) ;
79
77
const any_alerts = useProjectStatusAlerts ( project_id ) ;
80
78
81
- function renderWebsocketIndicator ( ) {
82
- return (
83
- // Hiding this on very skinny devices isn't necessarily bad, since the exact same information is
84
- // now visible via a big "Connecting..." banner after a few seconds.
85
- < span
86
- style = { { paddingLeft : "15px" , marginRight : "-15px" } }
87
- className = "hidden-xs"
88
- >
89
- < WebsocketIndicator state = { project_websockets ?. get ( project_id ) } />
90
- </ span >
91
- ) ;
92
- }
93
-
94
79
const title = project ?. get ( "title" ) ?? public_project_titles ?. get ( project_id ) ;
95
80
if ( title == null ) {
96
81
if ( active_top_tab == project_id ) {
@@ -103,11 +88,6 @@ function ProjectTab({ project_id }: ProjectTabProps) {
103
88
set_window_title ( title ) ;
104
89
}
105
90
106
- const nav_style_inner : CSSProperties = {
107
- float : "right" ,
108
- whiteSpace : "nowrap" ,
109
- } ;
110
-
111
91
const project_state = project ?. getIn ( [ "state" , "state" ] ) ;
112
92
113
93
const icon =
@@ -214,8 +194,13 @@ function ProjectTab({ project_id }: ProjectTabProps) {
214
194
}
215
195
216
196
const body = (
217
- < div onMouseUp = { onMouseUp } style = { width != null ? { width } : undefined } >
218
- < div style = { nav_style_inner } > { renderWebsocketIndicator ( ) } </ div >
197
+ < div
198
+ onMouseUp = { onMouseUp }
199
+ style = { {
200
+ marginTop : "-4px" /* compensate for border */ ,
201
+ ...( width != null ? { width } : undefined ) ,
202
+ } }
203
+ >
219
204
< div style = { PROJECT_NAME_STYLE } onClick = { click_title } >
220
205
{ icon }
221
206
{ renderNoInternet ( ) }
0 commit comments