@@ -9,6 +9,7 @@ import { ContextMenu, MenuItem, ContextMenuTrigger } from 'react-contextmenu';
9
9
10
10
import { MdClose } from 'react-icons/md' ;
11
11
import { MdRefresh } from 'react-icons/md' ;
12
+ import { MdVolumeOff } from 'react-icons/md' ;
12
13
import { FaThumbtack } from 'react-icons/fa' ;
13
14
14
15
import './Tab.css' ;
@@ -19,7 +20,8 @@ const Tab = ({
19
20
index,
20
21
active,
21
22
pinned,
22
- muted,
23
+ mutedInfo,
24
+ audible,
23
25
faviconUrl,
24
26
title,
25
27
url,
@@ -106,9 +108,9 @@ const Tab = ({
106
108
chrome . tabs . update ( id , { pinned : ! pinned } ) ;
107
109
} ;
108
110
109
- const muteTabClickedHandler = ( e , tabId ) => {
110
- chrome . tabs . update ( id , { muted : ! muted } ) ;
111
- } ;
111
+ // const muteTabClickedHandler = (e, tabId) => {
112
+ // chrome.tabs.update(id, { muted: !muted });
113
+ // };
112
114
113
115
const closeTabClickedHandler = ( e , tabId ) => {
114
116
e . stopPropagation ( ) ;
@@ -212,13 +214,29 @@ const Tab = ({
212
214
/>
213
215
) }
214
216
</ div >
217
+
215
218
< div
216
219
className = "TabTitleContainer"
217
220
title = { displayTabInFull ? url : `${ title } \n\n${ url } ` }
218
221
>
219
- < div className = { displayTabInFull ? null : 'TabTitle' } >
222
+ < div
223
+ className = { [
224
+ 'TabTitle' ,
225
+ displayTabInFull ? null : 'Truncated' ,
226
+ ] . join ( ' ' ) }
227
+ >
220
228
{ title }
221
229
</ div >
230
+ { mutedInfo . muted && audible && (
231
+ < div
232
+ className = { [
233
+ 'MutedIconContainer' ,
234
+ isDark ? 'Dark' : null ,
235
+ ] . join ( ' ' ) }
236
+ >
237
+ < MdVolumeOff size = { '16px' } />
238
+ </ div >
239
+ ) }
222
240
</ div >
223
241
224
242
< div
0 commit comments