summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-28 22:32:01 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-06-28 22:32:01 +0900
commit9a4198293a781932fdcec193c07f659ff6ead076 (patch)
tree0c7e95622e420736c6a9978e468001c00ad55925 /packages/client/src
parentchore(client): tweak style (diff)
downloadmisskey-9a4198293a781932fdcec193c07f659ff6ead076.tar.gz
misskey-9a4198293a781932fdcec193c07f659ff6ead076.tar.bz2
misskey-9a4198293a781932fdcec193c07f659ff6ead076.zip
chore(client): tweak style
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/components/form/radio.vue1
-rw-r--r--packages/client/src/components/form/radios.vue32
2 files changed, 17 insertions, 16 deletions
diff --git a/packages/client/src/components/form/radio.vue b/packages/client/src/components/form/radio.vue
index db13fee4ff..b4d39507e3 100644
--- a/packages/client/src/components/form/radio.vue
+++ b/packages/client/src/components/form/radio.vue
@@ -55,6 +55,7 @@ export default defineComponent({
text-align: left;
cursor: pointer;
padding: 9px 12px;
+ min-width: 60px;
background-color: var(--panel);
background-clip: padding-box !important;
border: solid 1px var(--panel);
diff --git a/packages/client/src/components/form/radios.vue b/packages/client/src/components/form/radios.vue
index a52acae9e1..bde4a8fb00 100644
--- a/packages/client/src/components/form/radios.vue
+++ b/packages/client/src/components/form/radios.vue
@@ -4,11 +4,11 @@ import MkRadio from './radio.vue';
export default defineComponent({
components: {
- MkRadio
+ MkRadio,
},
props: {
modelValue: {
- required: false
+ required: false,
},
},
data() {
@@ -19,7 +19,7 @@ export default defineComponent({
watch: {
value() {
this.$emit('update:modelValue', this.value);
- }
+ },
},
render() {
let options = this.$slots.default();
@@ -30,25 +30,25 @@ export default defineComponent({
if (options.length === 1 && options[0].props == null) options = options[0].children;
return h('div', {
- class: 'novjtcto'
+ class: 'novjtcto',
}, [
...(label ? [h('div', {
- class: 'label'
+ class: 'label',
}, [label])] : []),
h('div', {
- class: 'body'
+ class: 'body',
}, options.map(option => h(MkRadio, {
- key: option.key,
- value: option.props.value,
- modelValue: this.value,
- 'onUpdate:modelValue': value => this.value = value,
- }, option.children)),
+ key: option.key,
+ value: option.props.value,
+ modelValue: this.value,
+ 'onUpdate:modelValue': value => this.value = value,
+ }, option.children)),
),
...(caption ? [h('div', {
- class: 'caption'
+ class: 'caption',
}, [caption])] : []),
]);
- }
+ },
});
</script>
@@ -65,9 +65,9 @@ export default defineComponent({
}
> .body {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
- grid-gap: 12px;
+ display: flex;
+ gap: 12px;
+ flex-wrap: wrap;
}
> .caption {