Skip to content

Commit

Permalink
fix(gpth): decrease width of Reset All button
Browse files Browse the repository at this point in the history
- Reduced the width of the "Reset All" button in the GPThemes Customization section

Changes summary:
    - Decreased the width of the "Reset All" button in GPThemes Customization.
  • Loading branch information
itsmartashub committed Oct 18, 2024
1 parent 798f016 commit 01ead5b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/js/app/components/renderButtons.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function renderButton({ name, className, id, content, disabled = false }) {
export function renderButton({ className, id, content, disabled = false }) {
return `
<button id="${id}" class="btn block relative text-center ${className}" ${disabled ? 'disabled' : ''}>
<button id="${id}" class="btn m-auto w-2/3 text-center ${className}" ${disabled ? 'disabled' : ''}>
${content}
</button>
`
Expand Down
5 changes: 3 additions & 2 deletions src/js/app/mainColors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import browser from 'webextension-polyfill'
import { closeSettings, $settings } from './settingsManager.js'
import { hexToHSL } from '../utils/hexToHSL.js'
import { renderButton } from './components/renderButtons'

const DEFAULT_COLORS = {
LIGHT: '#7e3e47',
Expand All @@ -26,8 +27,8 @@ const renderColorsTab = `
<label for="accentDark">Accent <span>Dark</span></label>
</div>
</div>
<footer class="grid mt-10">
<button id="resetAllAccents" class="btn block relative btn-primary text-center" as="button">Reset Accents</button>
<footer class="flex justify-center mt-10">
${renderButton({ id: 'resetAllAccents', content: 'Reset Fonts', disabled: false, className: 'btn-primary' })}
</footer>
</section>
`
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/mainFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ let renderFontsTab = `
${renderFontSmallCard(letterSpacingData)}
</div>
</div>
<footer class="grid mt-10">
<footer class="flex justify-center mt-10">
${renderButton({ id: 'resetFont', content: 'Reset Fonts', disabled: false, className: 'btn-primary' })}
</footer>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/mainWidths.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const renderWidthsTab = `
})}
</div>
<footer class="grid mt-10">
<footer class="flex justify-center mt-10">
${renderButton({ id: 'resetWidths', content: 'Reset All', disabled: false, className: 'btn-primary' })}
</footer>
</section>
Expand Down

0 comments on commit 01ead5b

Please sign in to comment.