Fit the left tabs on small screens; move routing settings into a modal
The left panel's four tabs overflowed its 272px width on tablets and small laptops: Goals wrapped its count, Networks ran off the edge. Counts now sit on the tab's corner, labels stay on one line and shrink last. Backbone, Auto-TE and DDoS settings sat below every notification in the NOC tab. A Routing & DDoS button at the top opens them in a modal that redraws in place after each action, with a red dot when Auto-TE is paused.
This commit is contained in:
parent
4a66bbf998
commit
3048c18b14
19 changed files with 110 additions and 17 deletions
|
|
@ -170,12 +170,12 @@ test('saves before 2.2 load: an attack on a city finds its target, and an IX bla
|
|||
|
||||
test('the NOC card fits a phone and the sandbox can send a test flood', () => {
|
||||
const { ev, errors, dom } = load();
|
||||
ev("beginGame('T','fra',{mode:'sandbox',preset:'sandbox'});if(UI.pendGame)ACT.pitchSkip();ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});UI.left='noc';renderLeft()");
|
||||
const b = dom.window.document.querySelector('[data-act=ddosTest]');
|
||||
ev("beginGame('T','fra',{mode:'sandbox',preset:'sandbox'});if(UI.pendGame)ACT.pitchSkip();ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});UI.left='noc';renderLeft();ACT.routingOpen()");
|
||||
const b = dom.window.document.querySelector('#modal [data-act=ddosTest]');
|
||||
assert.ok(b, 'a test flood button in Sandbox');
|
||||
b.click();
|
||||
assert.equal(ev('ddosAll().length'), 1);
|
||||
ev("UI.left='noc';renderLeft()");
|
||||
ev("closeModal();UI.left='noc';renderLeft()");
|
||||
const card = dom.window.document.querySelector('#left .inc.ddos');
|
||||
assert.ok(card, 'the card is shown');
|
||||
assert.ok(card.querySelectorAll('.btns').length <= 2, 'one suggestion, the rest behind More');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue