Skip to content

Commit 8c3df94

Browse files
committed
Fix layout issues with banners
1 parent 8bc00cf commit 8c3df94

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

keepassxc-browser/content/banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ kpxcBanner.create = async function(credentials = {}) {
6565
const className = kpxc.isFirefox ? 'kpxc-banner-icon-moz' : 'kpxc-banner-icon';
6666
const icon = kpxcUI.createElement('span', className, { 'alt': 'logo' });
6767

68-
const infoText = kpxcUI.createElement('span', '', {}, tr('rememberInfoText'));
68+
const infoText = kpxcUI.createElement('span', 'banner-info-text', {}, tr('rememberInfoText'));
6969
const usernameText = kpxcUI.createElement('span', 'small', {}, tr('popupUsername') + ' ');
7070
const usernameSpan = kpxcUI.createElement('span', 'small info information-username', {}, credentials.username);
7171

keepassxc-browser/content/custom-fields-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ kpxcCustomLoginFieldsBanner.create = async function() {
9595

9696
const iconClassName = kpxc.isFirefox ? 'kpxc-banner-icon-moz' : 'kpxc-banner-icon';
9797
const icon = kpxcUI.createElement('span', iconClassName);
98-
const infoText = kpxcUI.createElement('span', '', {}, tr('defineChooseCustomLoginFieldText'));
98+
const infoText = kpxcUI.createElement('span', 'banner-info-text', {}, tr('defineChooseCustomLoginFieldText'));
9999
const separator = kpxcUI.createElement('div', 'kpxc-separator');
100100
const secondSeparator = kpxcUI.createElement('div', 'kpxc-separator');
101101

@@ -594,7 +594,7 @@ kpxcCustomLoginFieldsBanner.markFields = function() {
594594
if (kpxcCustomLoginFieldsBanner.dataStep !== STEP_SELECT_STRING_FIELDS) {
595595
field.textContent = dataStepToString();
596596
}
597-
597+
598598
// Static size for the checkbox overlay
599599
if (i?.getLowerCaseAttribute('type') === 'checkbox') {
600600
field.style.width = Pixels(CHECKBOX_OVERLAY_SIZE / zoom);

keepassxc-browser/css/banner.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ div.kpxc-banner {
1313
margin: 0 auto !important;
1414
min-height: 2em !important;
1515
max-height: 4em !important;
16-
overflow-x: hidden !important;
16+
overflow-x: auto !important;
1717
padding: 4px !important;
1818
position: fixed !important;
1919
width: 100% !important;
@@ -49,6 +49,10 @@ div.kpxc-banner .banner-info > span {
4949
margin: 4px;
5050
}
5151

52+
div.kpxc-banner .banner-info-text {
53+
text-wrap: nowrap;
54+
}
55+
5256
div.kpxc-banner div.banner-info, div.banner-buttons {
5357
display: inline-flex;
5458
align-items: center;
@@ -113,6 +117,7 @@ div.kpxc-banner label {
113117
font-size: 12px !important;
114118
font-weight: normal !important;
115119
margin: 4px !important;
120+
text-wrap: nowrap;
116121
}
117122

118123
div.kpxc-banner-dialog {

keepassxc-browser/css/button.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
height: 28px !important;
99
margin: .2em !important;
1010
padding: 1px 7px 2px !important;
11+
text-wrap: nowrap;
1112
}
1213

1314
.kpxc-white-button {

0 commit comments

Comments
 (0)