1
0

Scale all dialogs to fit with scrolling

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-02-26 15:44:39 -08:00
parent 001b26825d
commit 7acec84f94
5 changed files with 46 additions and 29 deletions

View File

@ -11,6 +11,16 @@
z-index: 1000;
}
.ChooseCard > * {
max-height: calc(100vh - 2em);
overflow: auto;
margin: 0.5em;
width: 40em;
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.ChooseCard .Title {
align-self: center;
padding: 2px;
@ -18,13 +28,6 @@
margin-bottom: 0.5em;
}
.ChooseCard > * {
/* min-width: 40em;*/
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.ChooseCard .Stack {
margin: 0;
padding: 0;

View File

@ -2,7 +2,6 @@
display: flex;
position: absolute;
width: 100%;
overflow: hidden;
height: 100%;
justify-content: space-between; /* left-justify 'board', right-justify 'game' */
background-image: url("./assets/tabletop.png");
@ -13,6 +12,8 @@
margin-right: 30rem;
justify-content: space-between;
align-items: flex-end;
height: 8rem;
overflow: visible;
}
.WaitingForPlayer {
@ -44,6 +45,8 @@
align-items: center;
background: rgba(0,0,0,0.5);
z-index: 1000;
max-height: 100vh;
overflow: auto;
}
.GameOrder .Title {

View File

@ -11,6 +11,16 @@
z-index: 1000;
}
.Trade > * {
max-height: calc(100vh - 2em);
overflow: auto;
width: 40em;
display: inline-flex;
padding: 0.5em;
flex-direction: column;
margin: 0.5em;
}
.Trade .Title {
align-self: center;
padding: 2px;
@ -23,13 +33,6 @@
margin: 0.5em 0;
}
.Trade > * {
min-width: 40em;
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.Trade .Resource {
width: 3.75em; /* 5x7 aspect ratio */
height: 5.25em;

View File

@ -11,6 +11,16 @@
z-index: 1000;
}
.ViewCard > * {
max-height: calc(100vh - 2em);
overflow: auto;
margin: 0.5em;
width: 40em;
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.ViewCard .Title {
align-self: center;
padding: 2px;
@ -24,13 +34,6 @@
box-sizing: border-box;
}
.ViewCard > * {
/* min-width: 40em;*/
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.ViewCard .Resource {
width: 10em; /* 5x7 aspect ratio */
height: 14em;

View File

@ -9,6 +9,18 @@
align-items: center;
background: rgba(0,0,0,0.5);
z-index: 1000;
max-height: 100vh;
overflow: auto;
}
.Winner > * {
max-height: calc(100vh - 2em);
overflow: auto;
margin: 0.5em;
width: 40em;
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.Winner .Title {
@ -24,13 +36,6 @@
box-sizing: border-box;
}
.Winner > * {
/* min-width: 40em;*/
display: inline-flex;
padding: 0.5em;
flex-direction: column;
}
.Winner .Resource {
width: 10em; /* 5x7 aspect ratio */
height: 14em;