Skip to content

Commit

Permalink
🎨 Just a little bit adjusting
Browse files Browse the repository at this point in the history
  • Loading branch information
rdwz committed Nov 30, 2023
1 parent bb803c4 commit 9d9b75b
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 66 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ async function html() {
SVGOMFG_VERSION: changelog[0].version,
SVGO_VERSION,
liveBaseUrl: 'https://omfg.svg.beauty',
title: `SVGOMFG - SVGO's Missing GUI`,
description: 'Easy & visual compression of SVG images.',
title: "SVGOMFG‼️ SVGO's Missing and Future-proof GUI",
description: 'Easy & Visual 🎛️ Compression of SVG Images ⚡ Ready to install for Offline Usage 🔌',
appleTouchIconPath: '/apple-touch-icon.png',
faviconPath: '/favicon.svg',
ogImagePath: '/imgs/og-image.png',
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
},
"keywords": [
"minify",
"optimize",
"open source",
"pwa",
"svg",
"svgo"
],
Expand Down
5 changes: 3 additions & 2 deletions src/css/components/_floating-action-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
position: relative;
cursor: pointer;
overflow: hidden;
z-index: 0; // Is this really needed?
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -19,6 +18,8 @@

&:hover,
&.key-focused {
background-color: red;
color: #fff;
transform: scale(1.15);
}

Expand Down Expand Up @@ -51,7 +52,7 @@
width: 56px;
height: 56px;
border-radius: 28px;
background-color: #fff;
background-color: red;

.icon {
fill: #fff;
Expand Down
3 changes: 2 additions & 1 deletion src/css/components/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
box-shadow: 0 3px 3px rgba(0, 0, 0, .2);
padding: 7px 25px 7px 11px;
font-size: .9rem;
border-radius: 2px;
font-weight: 500;
border-radius: 4px;

.decrease {
color: green;
Expand Down
3 changes: 2 additions & 1 deletion src/css/components/_settings.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.settings {
background-color: #fff;
border-radius: 4px;
display: flex;
flex-flow: column;
@include user-select(none);
Expand All @@ -16,7 +17,7 @@
position: relative;
cursor: pointer;
padding: 0 16px;
height: 51px;
height: 40px;
display: grid;
grid-template-columns: max-content 1fr;
align-items: center;
Expand Down
8 changes: 1 addition & 7 deletions src/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions src/imgs/maskable copy 2.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/imgs/maskable copy.svg

This file was deleted.

7 changes: 1 addition & 6 deletions src/imgs/maskable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/imgs/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/js/page/ui/copy-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class CopyButton extends FloatingActionButton {
title,
iconSvg:
// prettier-ignore
'<svg aria-hidden="true" class="icon" viewBox="0 0 24 24">' +
'<svg aria-hidden="true" fill="currentColor" class="icon" viewBox="0 0 24 24">' +
'<path d="M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.412-.587T3 20V7q0-.425.288-.712T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5Zm4-6V4v12Z"/>' +
'</svg>',
})
Expand Down
5 changes: 1 addition & 4 deletions src/js/svgo-worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ function compress(svgInput, settings) {
params: {},
}

// TODO: revisit this
// 0 almost always breaks images when used on `cleanupNumericValues`.
// Better to allow 0 for everything else, but switch to 1 for this plugin.
plugin.params.floatPrecision = plugin.name === 'cleanupNumericValues' && floatPrecision === 0 ? 1 : floatPrecision
plugin.params.floatPrecision = floatPrecision // Remove the switch to 1 precision

plugin.params.transformPrecision = transformPrecision

Expand Down
4 changes: 1 addition & 3 deletions src/partials/icons/code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/partials/icons/contribute.svg

This file was deleted.

4 changes: 1 addition & 3 deletions src/partials/icons/demo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/partials/icons/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions src/partials/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/partials/icons/menu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/partials/icons/more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/partials/icons/open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/partials/icons/paste.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d9b75b

Please sign in to comment.