mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-12-03 12:24:29 +01:00
fix(ui): tavern floor, play-area focus border, and Smirk locked-wallet UX
Tavern: revert the per-cell 'varied floor/wall' tiles to coherent single tiles — mixing wood/stone/plank per cell read as visual noise (assetPacks.js). Play area: draw the keyboard-focus outline inset (outline-offset -2px) so the yellow border shows on the right edge, which the container's overflow:hidden was clipping (ui.js). Smirk: a locked wallet now shows a friendly 'unlock in the extension, then Retry' hint instead of a red error, and the LOCKED error code is preserved through connect()/signMessage(). Current Smirk builds auto-open the unlock popup on connect(); older builds throw LOCKED, which the Retry button re-invokes (smirkAuth.js).
This commit is contained in:
+4
-1
@@ -19,7 +19,10 @@ const UI = {
|
||||
var chatInput = $('#chatInput');
|
||||
|
||||
if (document.activeElement === gameDisplay[0]) {
|
||||
gameDisplay.css('outline', '2px solid yellow');
|
||||
// Inset the outline (offset -2px) so it is drawn INSIDE the box — the play area is
|
||||
// flush to the viewport's right edge and the container clips an outward outline there,
|
||||
// which hid the border on the right side.
|
||||
gameDisplay.css({ 'outline': '2px solid yellow', 'outline-offset': '-2px' });
|
||||
chatInput.css('outline', 'none');
|
||||
} else if (document.activeElement === chatInput[0]) {
|
||||
chatInput.css('outline', '2px solid cyan');
|
||||
|
||||
Reference in New Issue
Block a user