|
@ -20,16 +20,8 @@ const Titlebar = () => { |
|
|
return ( |
|
|
return ( |
|
|
<TitleHeader id="titlebar"> |
|
|
<TitleHeader id="titlebar"> |
|
|
<DragRegion id="drag-region"> |
|
|
<DragRegion id="drag-region"> |
|
|
<div |
|
|
<div id="window-title-wrapper"> |
|
|
id="window-title" |
|
|
<span id="window-title">{title}</span> |
|
|
style={{ |
|
|
|
|
|
width: 'calc(80%)', |
|
|
|
|
|
overflow: 'hidden', |
|
|
|
|
|
textOverflow: 'ellipsis', |
|
|
|
|
|
whiteSpace: 'nowrap', |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<span>{title}</span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<WindowControl id="window-controls"> |
|
|
<WindowControl id="window-controls"> |
|
|
<WindowControlButton minButton className="button" id="min-button"> |
|
|
<WindowControlButton minButton className="button" id="min-button"> |
|
|