@@ -61,7 +61,7 @@ export const WorkspaceEntry: FunctionComponent<Props> = ({ info, shortVersion })
61
61
< ItemFieldIcon >
62
62
< WorkspaceStatusIndicator status = { workspace ?. status } />
63
63
</ ItemFieldIcon >
64
- < div className = "flex-grow flex flex-col h-full py-auto" >
64
+ < div className = "flex-grow flex flex-col h-full py-auto truncate " >
65
65
< a href = { startUrl } >
66
66
< div className = "font-medium text-gray-800 dark:text-gray-200 truncate hover:text-blue-600 dark:hover:text-blue-400" >
67
67
{ info . id }
@@ -77,40 +77,48 @@ export const WorkspaceEntry: FunctionComponent<Props> = ({ info, shortVersion })
77
77
</ div >
78
78
{ ! shortVersion && (
79
79
< >
80
- < div className = "w-3/12 flex flex-col lg:flex-row lg:items-center lg:gap-6 justify-between px-3" >
81
- < div className = "text-gray-500 dark:text-gray-400 overflow-ellipsis truncate flex flex-row gap-1 items-center" >
82
- < GitBranchIcon className = "h-4 w-4" />
83
- < Tooltip content = { currentBranch } > { currentBranch } </ Tooltip >
80
+ < div className = "w-2/12 sm:w-3/12 xl:w-4/12 flex flex-col xl:flex-row xl:items-center xl:gap-6 justify-between px-1 md:px-3" >
81
+ < div className = "text-gray-500 dark:text-gray-400 flex flex-row gap-1 items-center overflow-hidden" >
82
+ < div className = "min-w-4" >
83
+ < GitBranchIcon className = "h-4 w-4" />
84
+ </ div >
85
+ < Tooltip content = { currentBranch } className = "truncate overflow-ellipsis" >
86
+ { currentBranch }
87
+ </ Tooltip >
84
88
</ div >
85
- < div className = "mr-auto" >
89
+ < div className = "mr-auto xl:hidden " >
86
90
< PendingChangesDropdown gitStatus = { gitStatus } />
87
91
</ div >
88
92
</ div >
89
- < div className = "w-2/12 px-3 flex items-center min-w" >
93
+ < div className = "hidden xl:flex xl:items-center xl:min-w-46" >
94
+ < PendingChangesDropdown gitStatus = { gitStatus } />
95
+ </ div >
96
+ < div className = "px-1 md:px-3 flex items-center min-w-96 w-28 lg:w-44 text-right" >
90
97
< Tooltip
91
98
content = { `Last Activate ${ dayjs (
92
99
info . status ! . phase ! . lastTransitionTime ! . toDate ( ) ,
93
100
) . fromNow ( ) } `}
101
+ className = "w-full"
94
102
>
95
103
< div className = "text-sm w-full text-gray-400 overflow-ellipsis truncate" >
96
104
{ dayjs ( info . status ?. phase ?. lastTransitionTime ?. toDate ( ) ?? new Date ( ) ) . fromNow ( ) }
97
105
</ div >
98
106
</ Tooltip >
99
107
</ div >
100
- < div className = "px-3 flex items-center" >
108
+ < div className = "px-1 md:px- 3 flex items-center" >
101
109
< div
110
+ onClick = { togglePinned }
102
111
className = {
103
- "px-2 flex items-center hover:bg-gray-200 dark:hover:bg-gray-700 rounded-md cursor-pointer h-8 w-8"
112
+ "group px-2 flex items-center hover:bg-gray-200 dark:hover:bg-gray-700 rounded-md cursor-pointer h-8 w-8"
104
113
}
105
114
>
106
115
< Tooltip content = { workspace . metadata ?. pinned ? "Unpin" : "Pin" } >
107
116
< PinIcon
108
- onClick = { togglePinned }
109
117
className = {
110
118
"w-4 h-4 self-center " +
111
119
( workspace . metadata ?. pinned
112
120
? "text-gray-600 dark:text-gray-300"
113
- : "text-gray-300 dark:text-500 hover:text-gray-600 dark:hover:text-gray-300" )
121
+ : "text-gray-300 dark:text-gray-600 group- hover:text-gray-600 dark:group- hover:text-gray-300" )
114
122
}
115
123
/>
116
124
</ Tooltip >
0 commit comments