Skip to content

Commit 9fbfd0e

Browse files
committed
Various minor fixes
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent c93bedb commit 9fbfd0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

notification/method/webpush.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function is_available(type_interface $notification_type = null): bool
101101
*/
102102
public function is_enabled_by_default()
103103
{
104-
return $this->config['wpn_webpush_method_enabled'];
104+
return (bool) $this->config['wpn_webpush_method_enabled'];
105105
}
106106

107107
/**
@@ -205,7 +205,7 @@ protected function notify_using_webpush(): void
205205
// Fix encryption payload size for Firefox on Android
206206
if (preg_match('/android.*firefox/i', $this->user->browser))
207207
{
208-
$web_push->setAutomaticPadding(2820);
208+
$web_push->setAutomaticPadding(2000);
209209
}
210210

211211
$number_of_notifications = 0;

styles/all/theme/phpbb_wpn.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
display: flex;
1919
flex-wrap: nowrap;
2020
justify-content: space-between;
21-
padding: 5px 25px;
21+
padding: 5px 10px;
2222
}
2323

2424
.wpn-notification-dropdown-footer button:disabled {

0 commit comments

Comments
 (0)