From c796f4303dbd0cdad196a3631b53e61fb9c4fa06 Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Sun, 29 Sep 2024 15:11:50 -0600 Subject: [PATCH] Update inline override icon to avoid CSP issues. Resolves #113 --- .changeset/orange-bulldogs-remember.md | 5 +++++ src/ui/import-map-overrides.css | 12 ------------ src/ui/list/list.component.js | 3 +-- 3 files changed, 6 insertions(+), 14 deletions(-) create mode 100644 .changeset/orange-bulldogs-remember.md diff --git a/.changeset/orange-bulldogs-remember.md b/.changeset/orange-bulldogs-remember.md new file mode 100644 index 0000000..a78fcf5 --- /dev/null +++ b/.changeset/orange-bulldogs-remember.md @@ -0,0 +1,5 @@ +--- +"import-map-overrides": patch +--- + +Update inline override icon to avoid CSP issues diff --git a/src/ui/import-map-overrides.css b/src/ui/import-map-overrides.css index fc7e155..27a6a9b 100644 --- a/src/ui/import-map-overrides.css +++ b/src/ui/import-map-overrides.css @@ -153,18 +153,6 @@ position: relative; } -.imo-needs-refresh { - position: absolute; - right: 8px; - width: 20px; - height: 20px; - /* base64 encoded 27F2 svg */ - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='261' height='216' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' stroke-linecap='square' stroke-miterlimit='10' shape-rendering='auto' stroke-opacity='1' fill='%23ffffff' stroke-dasharray='none' stroke-width='1' stroke-linejoin='miter' stroke-dashoffset='0'%3E%3Cg%3E%3Cpath fill='%23ffffff' d='m152.5625,214.0625q-27.5625,0 -49.6406,-11.8125q-22.0781,-11.8125 -34.7344,-28.4062l12.6563,-11.5313q10.6874,15.1875 31.0781,25.0313q20.3906,9.8437 40.6406,9.8437q21.375,0 44.1563,-11.5313q22.7812,-11.5312 34.3124,-34.3124q11.5313,-22.7813 11.5313,-44.1563q0,-21.375 -11.5313,-44.1563q-11.5312,-22.7812 -34.3124,-34.3124q-22.7813,-11.5313 -44.1563,-11.5313q-19.9687,0 -39.6563,9.1406q-19.6874,9.1407 -30.9374,24.1875q-11.25,15.0469 -16.7344,35.7188l42.3281,-34.7344l-54,91.6875l-54,-91.6875l47.25,38.8125q3.9375,-24.4687 17.4375,-44.5781q13.5,-20.1094 36.9844,-32.7656q23.4844,-12.6563 51.3281,-12.6563q29.25,0 54,14.0625q24.75,14.0625 38.8125,38.8125q14.0625,24.75 14.0625,54q0,29.25 -14.0625,54q-14.0625,24.75 -38.8125,38.8125q-24.75,14.0625 -54,14.0625z' /%3E%3C/g%3E%3C/svg%3E"); - background-size: contain; - background-repeat: no-repeat; - background-position: center; -} - .imo-status { height: 16px; width: 16px; diff --git a/src/ui/list/list.component.js b/src/ui/list/list.component.js index 38fa3ce..cf69a94 100644 --- a/src/ui/list/list.component.js +++ b/src/ui/list/list.component.js @@ -213,8 +213,7 @@ export default class List extends Component { >
-
Inline Override
-
+
Inline Override {"\u21BB"}
{mod.moduleName} {toDomain(mod)}