N
Nuxt5mo ago
Sloth

weird issue with my components not lining up

Heres my page code:
<template>
<div>
<GoogleFontIcon name="language"/>
<br/>
<br/>
<UIButton text="Fun button" :event="events.testing" icon="add_circle"/>
<UIButton text="Fun button" :event="events.testing" disabled icon="add_circle"/>
<UIButton text="Fun button" :event="events.testing" disabled icon="add_circle, both"/>
<br/>
<br/>
<UIButton :event="events.testing" text="settings"/>
<UIButton :event="events.testing" disabled icon="settings"/>
<UIButton :event="events.testing" icon="settings"/>
<UIButton :event="events.testing" disabled text="settings"/>
<UIButton :event="events.testing" icon="settings"/>
<UIButton :event="events.testing"/>
</div>
</template>

<script>
export default {
mounted() {
this.$bus.$on(events.testing, this.buttonPressed)
},
methods: {
buttonPressed() {
alert("Button Pressed")
}
}
}
</script>

<style scoped>
div {
padding: 1rem;
}
</style>
<template>
<div>
<GoogleFontIcon name="language"/>
<br/>
<br/>
<UIButton text="Fun button" :event="events.testing" icon="add_circle"/>
<UIButton text="Fun button" :event="events.testing" disabled icon="add_circle"/>
<UIButton text="Fun button" :event="events.testing" disabled icon="add_circle, both"/>
<br/>
<br/>
<UIButton :event="events.testing" text="settings"/>
<UIButton :event="events.testing" disabled icon="settings"/>
<UIButton :event="events.testing" icon="settings"/>
<UIButton :event="events.testing" disabled text="settings"/>
<UIButton :event="events.testing" icon="settings"/>
<UIButton :event="events.testing"/>
</div>
</template>

<script>
export default {
mounted() {
this.$bus.$on(events.testing, this.buttonPressed)
},
methods: {
buttonPressed() {
alert("Button Pressed")
}
}
}
</script>

<style scoped>
div {
padding: 1rem;
}
</style>
No description
6 Replies
Sloth
SlothOP5mo ago
heres GoogleFontIcon:
<template>
<span class="material-symbols-outlined font-icon">
{{ name }}
</span>
</template>

<script>
export default {
props: ["name"]
}
</script>

<style scoped>
.font-icon {
color: inherit;
font-size: inherit;
}
</style>
<template>
<span class="material-symbols-outlined font-icon">
{{ name }}
</span>
</template>

<script>
export default {
props: ["name"]
}
</script>

<style scoped>
.font-icon {
color: inherit;
font-size: inherit;
}
</style>
Sloth
SlothOP5mo ago
and UIButton which is too large to post in a message
Sloth
SlothOP5mo ago
I don't get why the buttons aren't lining up and i don't know what the issue is or how to fix it
No description
IcyFoxer
IcyFoxer5mo ago
Remove your br and see how it looks. This is more of a css issue
Sloth
SlothOP5mo ago
removing the br didnt fix it it probably is just css but i was hoping someone would see something that im not that would cause the issue
Want results from more Discord servers?
Add your server