Skip to content

Commit

Permalink
Merge pull request #1905 from oasisprotocol/lw/dense-settings-tabs
Browse files Browse the repository at this point in the history
Denser tab buttons in settings
  • Loading branch information
lukaw3d authored Apr 26, 2024
2 parents 9c0c525 + 28618de commit 55082a2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changelog/1905.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Denser tab buttons in settings
2 changes: 1 addition & 1 deletion extension/src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>ROSE Wallet Extension</title>
</head>
<body>
<div id="root" style="min-width: 360px; min-height: 600px"></div>
<div id="root" style="min-width: 375px; min-height: 600px"></div>
<script type="module" src="./popup/popup.tsx"></script>
<!--
TODO: re-enable after supporting multiple extension popups with persistence
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ exports[`<AddContact /> should match snapshot 1`] = `
display: flex;
box-sizing: border-box;
max-width: 100%;
margin-left: 12px;
margin-right: 12px;
margin-left: 6px;
margin-right: 6px;
margin-top: 3px;
margin-bottom: 3px;
border-bottom: solid 2px #0500e2;
Expand Down Expand Up @@ -551,10 +551,20 @@ exports[`<AddContact /> should match snapshot 1`] = `
flex-grow: 1;
}
.c11 > [role='tablist'] > button {
padding-left: 0;
padding-right: 0;
}
.c11 > [role='tablist'] > button svg {
width: 14px;
margin-top: -5px;
}
.c16 {
white-space: nowrap;
margin-left: 12px;
margin-right: 12px;
margin-left: 6px;
margin-right: 6px;
margin-top: 3px;
margin-bottom: 3px;
}
Expand Down Expand Up @@ -755,8 +765,8 @@ exports[`<AddContact /> should match snapshot 1`] = `
@media only screen and (max-width:768px) {
.c15 {
margin-left: 6px;
margin-right: 6px;
margin-left: 3px;
margin-right: 3px;
}
}
Expand Down
14 changes: 14 additions & 0 deletions src/styles/theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ const grommetCustomTheme: ThemeType = {
color: 'brand',
},
},
margin: {
horizontal: 'xsmall',
},
},
tabs: {
header: {
Expand All @@ -242,6 +245,17 @@ const grommetCustomTheme: ThemeType = {
display: flex;
flex-direction: column;
flex-grow: 1;
// Arrows displayed when overflowing should be smaller on small screens
& > [role='tablist'] > button {
padding-left: 0;
padding-right: 0;
svg {
width: 14px;
margin-top: -5px;
}
}
`,
},
layer: {
Expand Down

0 comments on commit 55082a2

Please sign in to comment.