Skip to content

Commit

Permalink
fixed QuickLook scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
kholmogorov27 committed Apr 1, 2023
1 parent aba5e5b commit 4cd1b3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ const template = {
{format: '{@}%' }
),
quickLook: {
fontSize: new types.Range(
2.5,
{ min: 0.1, max: 10, step: 0.1 },
{ format: '{@}em' }
),
marquee: new types.Switch(true),
showMacrosLabel: new types.Switch(false),
// hidden
Expand Down
3 changes: 1 addition & 2 deletions src/components/QuickLook/QuickLook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function QuickLook ({ visibility, onAnimationEnd }) {
const color = theme.chevron
const topCurvature = settings.chevron.quickLook.topCurvature
const bottomCurvature = settings.chevron.quickLook.bottomCurvature
const fontSize = settings.chevron.quickLook.fontSize
const showMacrosLabel = settings.chevron.quickLook.showMacrosLabel
const notifyAboutForcedSearchEngine = settings.query.notifyAboutForcedSearchEngine

Expand Down Expand Up @@ -232,7 +231,7 @@ function QuickLook ({ visibility, onAnimationEnd }) {

const variables = {
'--thickness': thickness + 'px',
'--fontSize': fontSize + 'em',
'--fontSize': '5vmin',
'--textColor': parsedQuery.textColor
}

Expand Down

0 comments on commit 4cd1b3e

Please sign in to comment.