instance list
This commit is contained in:
parent
9f2114f3a0
commit
eb85155605
@ -158,9 +158,28 @@ header {
|
|||||||
|
|
||||||
.instance-list {
|
.instance-list {
|
||||||
flex: 0 0 50%;
|
flex: 0 0 50%;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-content: flex-start;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.instance-btn {
|
||||||
|
box-sizing: border-box;
|
||||||
|
flex: 1 0 20%;
|
||||||
|
font-size: 150%;
|
||||||
|
/*min-width: 20%;*/
|
||||||
|
border-width: 2px;
|
||||||
|
padding: 0.5em;
|
||||||
|
margin: 0.5em;
|
||||||
|
height: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.instance-btn.full {
|
||||||
|
flex: 1 0 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
INSTANCE
|
INSTANCE
|
||||||
*/
|
*/
|
||||||
@ -174,14 +193,6 @@ header {
|
|||||||
/*box-shadow: inset -0.5em 0 0 0 forestgreen;*/
|
/*box-shadow: inset -0.5em 0 0 0 forestgreen;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.instance-btn {
|
|
||||||
font-size: 150%;
|
|
||||||
min-width: 20%;
|
|
||||||
border-width: 2px;
|
|
||||||
padding: 0.5em;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.instance-ui-btn {
|
.instance-ui-btn {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
|
|||||||
@ -8,20 +8,21 @@ function instanceList({ instances, setActiveInstance, sendInstanceJoin }) {
|
|||||||
|
|
||||||
const instanceJoin = (
|
const instanceJoin = (
|
||||||
<button
|
<button
|
||||||
className="instance-btn right"
|
className="instance-btn full right"
|
||||||
onClick={() => sendInstanceJoin()}>
|
onClick={() => sendInstanceJoin()}>
|
||||||
Join New Instance
|
Join New Instance
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
||||||
const instancePanels = instances.map(instance => {
|
const instancePanels = instances.map(instance => {
|
||||||
const name = instance.instance === NULL_UUID
|
const globalInstance = instance.instance === NULL_UUID;
|
||||||
? 'Normal Mode'
|
const name = globalInstance
|
||||||
|
? 'Global Matchmaking'
|
||||||
: `${instance.instance.substring(0, 5)}`;
|
: `${instance.instance.substring(0, 5)}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
className="instance-btn right"
|
className={`instance-btn right ${globalInstance ? 'full' : ''}`}
|
||||||
key={instance.id}
|
key={instance.id}
|
||||||
onClick={() => setActiveInstance(instance)}>
|
onClick={() => setActiveInstance(instance)}>
|
||||||
{name}
|
{name}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user