Skip to content

Commit

Permalink
feat: Start offset
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalBryxi committed Sep 30, 2024
1 parent 450ac4e commit dd09dce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/avatar/badge.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default class OpenToFiles extends Component {
xlink:href='#curve'
id='textPath1'
dx='2.72'
startOffset='{{this.settings.textOffset}}'
>{{this.settings.text}}</textPath></text></svg>
</template>
}
8 changes: 8 additions & 0 deletions app/components/open-to/toggles/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ export default class OpenToToggles extends Component {
@onChange={{set this.settings 'backgroundColour'}}
@classes={{hash input='p-1 h-11'}}
/>
<Input
@type='range'
@label={{t 'toggles.text-offset'}}
@value={{this.settings.textOffset}}
@onInput={{set this.settings 'textOffset'}}
min='0'
max='200'
/>
</form>
</template>
}
1 change: 1 addition & 0 deletions app/services/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export default class SettingsService extends Service {
@tracked colourStop = '#ec4899';
@tracked cropToCircle = true;
@tracked backgroundColour = null;
@tracked textOffset = 0;
}
1 change: 1 addition & 0 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ toggles:
circle: Circle
square: Square
background-colour: Background colour
text-offset: Text offset
export:
button: Export
footer:
Expand Down

0 comments on commit dd09dce

Please sign in to comment.