Skip to content
Snippets Groups Projects
Unverified Commit 0fcf422d authored by syuilo's avatar syuilo
Browse files

[Client] Improve UI

parent 21e801a3
No related branches found
No related tags found
No related merge requests found
<template>
<div class="vnxwkwuf" :class="{ inputs, noGrow }">
<div class="vnxwkwuf" :class="{ inputs, noGrow }" :data-children-count="children">
<slot></slot>
</div>
</template>
......@@ -21,6 +21,16 @@ export default Vue.extend({
required: false,
default: false
}
},
data() {
return {
children: 0
};
},
mounted() {
this.$nextTick(() => {
this.children = this.$slots.default.length;
});
}
});
</script>
......@@ -48,4 +58,19 @@ export default Vue.extend({
> *:not(:last-child)
margin-right 16px !important
&[data-children-count="3"]
@media (max-width 600px)
display block
> *
display block
width 100% !important
margin 16px 0 !important
&:first-child
margin-top 0 !important
&:last-child
margin-bottom 0 !important
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment