1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Fix icons in dark mode, fix long savegame names

This commit is contained in:
tobspr 2020-08-28 22:22:29 +02:00
parent 728f4ae253
commit e04fcceecc
2 changed files with 9 additions and 1 deletions

View File

@ -310,6 +310,12 @@
@include PlainText; @include PlainText;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
> span {
display: inline-flex;
@include S(max-width, 140px);
overflow: hidden;
}
} }
button.resumeGame, button.resumeGame,
@ -363,6 +369,8 @@
&:hover { &:hover {
opacity: 0.35; opacity: 0.35;
} }
@include DarkThemeInvert;
} }
button.resumeGame { button.resumeGame {

View File

@ -398,7 +398,7 @@ export class MainMenuState extends GameState {
elem, elem,
null, null,
["name"], ["name"],
games[i].name ? games[i].name : T.mainMenu.savegameUnnamed "<span>" + (games[i].name ? games[i].name : T.mainMenu.savegameUnnamed) + "</span>"
); );
const deleteButton = document.createElement("button"); const deleteButton = document.createElement("button");