Skip to content

Commit fa08eb1

Browse files
authored
Merge pull request #25 from inpsyde/dev/POS-627-icons
Update assets (627)
2 parents edfffec + d7f3e62 commit fa08eb1

14 files changed

Lines changed: 32 additions & 43 deletions

File tree

modules.local/paypal-pos-assets/extensions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
return [
1616
'inpsyde.assets.registry' => static function (array $previous, C $container): array {
17-
$assetUri = rtrim(plugins_url('/assets/', __DIR__ . '/paypal-point-of-sale.php'), '/\\');
17+
$assetUri = $container->get('paypal-pos.assets.url');
18+
assert(is_string($assetUri));
1819

1920
if ($container->get('paypal-pos.assets.should-enqueue.all')()) {
2021
$previous[] = (new Style(
-6.71 KB
Binary file not shown.
2.67 KB
Loading
8.1 KB
Loading
-7.25 KB
Binary file not shown.
2.98 KB
Loading
1.79 KB
Loading
-9.81 KB
Binary file not shown.

modules.local/paypal-pos-assets/resources/scss/modules/_header.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@
1919
}
2020

2121
&-logo {
22-
width: 120px;
22+
width: 80px;
2323
margin: 0;
2424
padding: 0;
25+
26+
img {
27+
max-width: 100%;
28+
height: auto;
29+
}
2530
}
2631

2732
&-details {

modules.local/paypal-pos-assets/services.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
use Syde\PayPal\PointOfSale\Sync\Job\WipeRemoteProductsJob;
1212

1313
return [
14+
'paypal-pos.assets.url' => static function (C $container): string {
15+
return plugin_dir_url(__FILE__) . 'assets';
16+
},
17+
'paypal-pos.assets.img-resources-url' => static function (C $container): string {
18+
return plugin_dir_url(__FILE__) . 'resources/img';
19+
},
1420
'paypal-pos.assets.sync-job-types' => static function (C $container): array {
1521
$jobTypes = [
1622
'prepare' => [

0 commit comments

Comments
 (0)