mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:43:09 +02:00
[Client] Improve UI
This commit is contained in:
parent
21e801a325
commit
0fcf422dec
1 changed files with 26 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="vnxwkwuf" :class="{ inputs, noGrow }">
|
<div class="vnxwkwuf" :class="{ inputs, noGrow }" :data-children-count="children">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -21,6 +21,16 @@ export default Vue.extend({
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
children: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.children = this.$slots.default.length;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -48,4 +58,19 @@ export default Vue.extend({
|
||||||
> *:not(:last-child)
|
> *:not(:last-child)
|
||||||
margin-right 16px !important
|
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>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue