mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
adjust notification bar for small/zoomed screens
This commit is contained in:
@@ -5,8 +5,16 @@
|
||||
// i18n
|
||||
$('#logo-link').attr('title', chrome.i18n.getMessage('appName'));
|
||||
closeButton.attr('title', chrome.i18n.getMessage('close'));
|
||||
$('#template-add .add-save').text(chrome.i18n.getMessage('notificationAddSave'));
|
||||
$('#template-add .never-save').text(chrome.i18n.getMessage('notificationNeverSave'));
|
||||
|
||||
if (window.innerWidth < 768) {
|
||||
$('#template-add .add-save').text(chrome.i18n.getMessage('yes'));
|
||||
$('#template-add .never-save').text(chrome.i18n.getMessage('never'));
|
||||
}
|
||||
else {
|
||||
$('#template-add .add-save').text(chrome.i18n.getMessage('notificationAddSave'));
|
||||
$('#template-add .never-save').text(chrome.i18n.getMessage('notificationNeverSave'));
|
||||
}
|
||||
|
||||
$('#template-add .add-text').text(chrome.i18n.getMessage('notificationAddDesc'));
|
||||
|
||||
if (getQueryVariable('add')) {
|
||||
@@ -42,6 +50,13 @@
|
||||
});
|
||||
});
|
||||
|
||||
chrome.runtime.sendMessage({
|
||||
command: 'bgAdjustNotificationBar',
|
||||
data: {
|
||||
height: document.body.scrollHeight
|
||||
}
|
||||
});
|
||||
|
||||
function getQueryVariable(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split('&');
|
||||
|
||||
Reference in New Issue
Block a user