Skip to content

Commit

Permalink
Improve create server ad
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Nov 26, 2021
1 parent cf820b9 commit e761dc2
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/app/desktop/components/Instances/Instance.js
Expand Up @@ -15,7 +15,8 @@ import {
faTrash,
faStop,
faBoxOpen,
faCopy
faCopy,
faServer
} from '@fortawesome/free-solid-svg-icons';
import psTree from 'ps-tree';
import { ContextMenuTrigger, ContextMenu, MenuItem } from 'react-contextmenu';
Expand All @@ -32,7 +33,6 @@ import {
import { openModal } from '../../../../common/reducers/modals/actions';
import instanceDefaultBackground from '../../../../common/assets/instance_default.png';
import { convertMinutesToHumanTime } from '../../../../common/utils';
import BisectHostingLogo from '../../../../ui/BisectHosting';
import { FABRIC, FORGE, VANILLA } from '../../../../common/utils/constants';

const Container = styled.div`
Expand Down Expand Up @@ -320,25 +320,6 @@ const Instance = ({ instanceName }) => {
onHide={() => setIsHovered(false)}
>
<MenuInstanceName>{instanceName}</MenuInstanceName>
<MenuItem
onClick={openBisectModal}
preventClose
css={`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
height: 100px;
font-size: 18px;
// font-weight: bold;
border: 2px solid #04cbeb;
border-radius: 5px;
`}
>
<BisectHostingLogo hover showPointerCursor />
Create Server
</MenuItem>
{isPlaying && (
<MenuItem onClick={killProcess}>
<FontAwesomeIcon
Expand Down Expand Up @@ -415,6 +396,23 @@ const Instance = ({ instanceName }) => {
/>
Delete
</MenuItem>
<MenuItem divider />
<MenuItem
onClick={openBisectModal}
preventClose
css={`
border: 2px solid #04cbeb;
border-radius: 5px;
`}
>
<FontAwesomeIcon
icon={faServer}
css={`
margin-right: 10px;
`}
/>
Create Server
</MenuItem>
</ContextMenu>
</Portal>
</>
Expand Down

0 comments on commit e761dc2

Please sign in to comment.