Compare commits

...

2 Commits
0.8.0 ... 0.8.1

Author SHA1 Message Date
Viktor Rådberg
fa5829b402 fix keep away state 2024-03-23 16:23:03 +01:00
Viktor Rådberg
71f26d0dc5 fix keep awake toggle and layout styling 2024-03-23 16:22:48 +01:00
3 changed files with 7 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "life-trinket",
"private": true,
"version": "0.8.0",
"version": "0.8.1",
"type": "commonjs",
"engines": {
"node": ">=18",

View File

@@ -334,8 +334,8 @@ const PlayerMenu = ({
fontSize: buttonFontSize,
}}
className="text-primary-main px-1 webkit-user-select-none cursor-pointer
data-[wake-lock-active=false]:bg-secondary-dark rounded-lg border border-transparent
data-[wake-lock-active=false]:border-primary-main
data-[wake-lock-active=true]:bg-secondary-dark rounded-lg border border-transparent
data-[wake-lock-active=true]:border-primary-main
"
onClick={() => {
wakeLock.toggleWakeLock();

View File

@@ -42,7 +42,7 @@ export const LayoutOptions: React.FC<LayoutOptionsProps> = ({
switch (numberOfPlayers) {
case 1:
return (
<div>
<>
<FormControlLabel
value={Orientation.Landscape}
control={
@@ -91,7 +91,7 @@ export const LayoutOptions: React.FC<LayoutOptionsProps> = ({
}
label=""
/>
</div>
</>
);
case 2:
return (
@@ -309,6 +309,7 @@ export const LayoutOptions: React.FC<LayoutOptionsProps> = ({
value={Orientation.Portrait}
control={
<Radio
style={{ maxWidth: iconMaxWidth, maxHeight: iconMaxHeight }}
icon={
<FivePlayersSide
height={iconHeight}
@@ -362,6 +363,7 @@ export const LayoutOptions: React.FC<LayoutOptionsProps> = ({
value={Orientation.Portrait}
control={
<Radio
style={{ maxWidth: iconMaxWidth, maxHeight: iconMaxHeight }}
icon={
<SixPlayersSide
height={iconHeight}