Skip to content

Commit

Permalink
fix(icons): unset scale to see icons on iOS and avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultNocchi authored and ferferga committed Mar 27, 2023
1 parent 3b269f0 commit 04f901f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ const imageUrl = computed(() => {
const hash = computed(() => getBlurhash(props.item, props.type));
</script>

<style lang="scss">
.placeholder svg {
width: 100%;
height: 100%;
}
</style>

<style lang="scss" scoped>
.img {
color: transparent;
Expand Down
7 changes: 1 addition & 6 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ export default defineConfig(({ mode }): UserConfig => {
* See: https://github.com/antfu/unplugin-icons
*/
Icons({
compiler: 'vue3',
/**
* Don't hardcode any size to the icons, let Vuetify or whatever CSS styles
* we have applied to the object do the job instead.
*/
scale: 0
compiler: 'vue3'
}),
VitePWA(),
VueI18nPlugin({
Expand Down

0 comments on commit 04f901f

Please sign in to comment.