1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-21 23:35:05 +00:00

BUGFIX corrected button margins

This commit is contained in:
thomasrosen 2021-01-23 22:42:49 +01:00
parent 9f6de623d2
commit 336ac3decf
3 changed files with 6 additions and 8 deletions

View file

@ -104,17 +104,12 @@ a:hover{
box-shadow: 0 0 0 0.5vh white;
}
.HashtagChooser .hashtag_button {
/* display: block; */
margin: 1vmin;
}
button,
.labelButton{
position: relative;
outline: none;
border: none;
margin: 1vh;
margin: 2vmin;
padding: 1vh 2vh;
font-size: calc(10px + 2vmin);
font-weight: bold;
@ -124,6 +119,9 @@ button,
color: var(--volt-purple);
transition: transform 0.2s ease;
}
button.isInRow{
margin: 1vmin;
}
button:hover,
.labelButton:hover{
transform-origin: center center;

View file

@ -369,7 +369,7 @@ function AppWrapper() {
Object.entries(locales)
.map(([locale, name]) => {
return <button
className={locale === currentLocale ? 'choosen' : ''}
className={locale === currentLocale ? 'isInRow choosen' : 'isInRow'}
key={locale}
data-locale={locale}
onClick={handleLanguageChange}

View file

@ -61,7 +61,7 @@ function HashtagChooser({ onChange, getString }) {
frames.map(frame => {
const frame_src_path = frame.src.default
const isChoosen = choosenFrame === frame_src_path
return <button key={frame.name} data-src={frame_src_path} className={isChoosen ? 'hashtag_button choosen' : 'hashtag_button'} onClick={handleImageChoosing}>
return <button key={frame.name} data-src={frame_src_path} className={isChoosen ? 'isInRow choosen' : 'isInRow'} onClick={handleImageChoosing}>
{frame.name === '' ? getString('button_no_hashtag') : '#'+frame.name}
</button>
})