Skip to content

Commit

Permalink
fix(style): use custom select and expand widths to 100% (#845)
Browse files Browse the repository at this point in the history
2xAA authored Apr 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 14460ab commit 4453dd8
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/components/Control.vue
Original file line number Diff line number Diff line change
@@ -67,15 +67,15 @@
<TextureControl v-model="internalValue" />
</div>
<div class="input" v-else-if="type === 'enum'">
<select v-model="internalValue">
<Select v-model="internalValue">
<option
v-for="(option, index) in activeProp.enum"
:value="option.value"
:key="index"
:selected="option.selected"
>{{ option.label }}</option
>
</select>
</Select>
</div>
</c>
</grid>
@@ -93,6 +93,7 @@ import Vec3Control from "./Controls/Vec3Control";
import Vec4Control from "./Controls/Vec4Control";
import hasLink from "./mixins/has-input-link";
import inputIsFocused from "./mixins/input-is-focused";
import Select from "./inputs/Select.vue";
export default {
mixins: [hasLink, inputIsFocused],
@@ -137,7 +138,8 @@ export default {
FontControl,
ColorControl,
Vec3Control,
Vec4Control
Vec4Control,
Select
},
data() {
6 changes: 5 additions & 1 deletion src/components/Controls/TextureControl.vue
Original file line number Diff line number Diff line change
@@ -244,4 +244,8 @@ export default {
};
</script>
<style scoped></style>
<style scoped>
grid {
width: 100%;
}
</style>

0 comments on commit 4453dd8

Please sign in to comment.