Skip to content

Commit f14dc22

Browse files
Merge pull request #73 from JPL-Devin/devin/1778526896-hotkeys-modal-3col
style: vertical hotkeys modal + tighter leaflet zoom button gap
2 parents df6bf4c + ca12177 commit f14dc22

5 files changed

Lines changed: 33 additions & 10 deletions

File tree

configure/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "configure",
3+
<<<<<<< devin/1778526896-hotkeys-modal-3col
4+
"version": "5.0.5-20260511",
5+
=======
36
"version": "5.0.4-20260511",
7+
>>>>>>> development
48
"homepage": "./configure/build",
59
"private": true,
610
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mmgis",
3-
"version": "5.0.4-20260511",
3+
"version": "5.0.5-20260511",
44
"description": "A web-based mapping and localization solution for science operation on planetary missions.",
55
"homepage": "build",
66
"repository": {

src/css/mmgis.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ body {
498498
width: 30px;
499499
height: 30px;
500500
border-radius: 3px;
501-
margin-bottom: 5px;
501+
margin-bottom: 1px;
502502
font-size: 18px !important;
503503
border: none !important;
504504
border-radius: 3px !important;

src/essence/Basics/UserInterface_/BottomBar.css

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
background: rgba(var(--color-a-rgb, 29, 31, 32), 0.92);
33
backdrop-filter: blur(20px);
44
-webkit-backdrop-filter: blur(20px);
5+
width: min(420px, calc(100vw - 80px));
56
max-width: 90vw;
7+
max-height: calc(100vh - 80px);
68
margin: 40px;
79
border-radius: 10px;
810
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
911
overflow: hidden;
12+
display: flex;
13+
flex-direction: column;
1014
}
1115
#mainHotkeysModalTitle {
1216
padding: 0 0 0 14px;
@@ -18,6 +22,7 @@
1822
border-bottom: 1px solid var(--color-a1);
1923
display: flex;
2024
justify-content: space-between;
25+
flex: 0 0 auto;
2126
}
2227
#mainHotkeysModalTitle > div:first-child {
2328
display: flex;
@@ -38,17 +43,28 @@
3843
color: var(--color-f);
3944
}
4045
#mainHotkeysModalContent {
41-
padding: 10px 20px;
46+
padding: 4px 20px 14px;
4247
display: flex;
48+
flex-direction: column;
49+
overflow-y: auto;
50+
flex: 1 1 auto;
51+
}
52+
.mainHotkeysModalSection {
53+
padding: 10px 0;
4354
}
44-
.mainHotkeysModalSection:not(:last-child) {
45-
padding-right: 10px;
46-
margin-right: 10px;
47-
border-right: 1px solid var(--color-a2);
55+
.mainHotkeysModalSection + .mainHotkeysModalSection {
56+
border-top: 1px solid var(--color-a1);
57+
}
58+
.mainHotkeysModalSectionTitle {
59+
color: var(--color-h);
60+
font-weight: 600;
61+
font-size: 14px;
62+
padding-bottom: 4px;
4863
}
4964
.mainHotkeysModalSectionOptions > li {
5065
display: flex;
5166
justify-content: space-between;
67+
gap: 20px;
5268
padding: 2px 0px;
5369
font-size: 14px;
5470
white-space: nowrap;
@@ -58,13 +74,16 @@
5874
}
5975
.mainHotkeysModalSectionOptions > li > div:last-child {
6076
color: var(--color-a6);
61-
margin-left: 20px;
6277
font-size: 13px;
6378
}
6479
.mainHotkeysModalSectionSubtitle {
65-
color: var(--color-yellow);
80+
color: var(--color-f);
6681
font-size: 12px !important;
6782
text-transform: uppercase;
83+
margin-top: 8px;
84+
}
85+
.mainHotkeysModalSectionOptions > .mainHotkeysModalSectionSubtitle:first-child {
86+
margin-top: 0;
6887
}
6988

7089
#mainSettingsModal {

src/essence/Basics/UserInterface_/BottomBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ let BottomBar = {
233233
const modalContent = [
234234
`<div id='mainHotkeysModal'>`,
235235
`<div id='mainHotkeysModalTitle'>`,
236-
`<div><i class='mdi mdi-keyboard mdi-18px'></i><div>Hotkeys</div></div>`,
236+
`<div><i class='mdi mdi-keyboard mdi-18px'></i><div>Keyboard Shortcuts</div></div>`,
237237
`<div id='mainHotkeysModalClose'><i class='mmgisHoverBlue mdi mdi-close mdi-18px'></i></div>`,
238238
`</div>`,
239239
`<div id='mainHotkeysModalContent'>`,

0 commit comments

Comments
 (0)