diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-04 15:36:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-04 15:36:14 +0900 |
| commit | 6a5713f5e54efa82a196e105c508dd83b2e726bd (patch) | |
| tree | 12afe0a822ea173c3664954f6fb6cf1eb1709e8b /packages/client/src/components/key-value.vue | |
| parent | tweak ui (diff) | |
| download | misskey-6a5713f5e54efa82a196e105c508dd83b2e726bd.tar.gz misskey-6a5713f5e54efa82a196e105c508dd83b2e726bd.tar.bz2 misskey-6a5713f5e54efa82a196e105c508dd83b2e726bd.zip | |
tweak ui
Diffstat (limited to 'packages/client/src/components/key-value.vue')
| -rw-r--r-- | packages/client/src/components/key-value.vue | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/packages/client/src/components/key-value.vue b/packages/client/src/components/key-value.vue index 6a9a948ce9..da98abd77c 100644 --- a/packages/client/src/components/key-value.vue +++ b/packages/client/src/components/key-value.vue @@ -1,5 +1,5 @@ <template> -<div class="alqyeyti"> +<div class="alqyeyti" :class="{ oneline }"> <div class="key"> <slot name="key"></slot> </div> @@ -22,6 +22,11 @@ export default defineComponent({ required: false, default: null, }, + oneline: { + type: Boolean, + required: false, + default: false, + }, }, setup(props) { @@ -39,10 +44,30 @@ export default defineComponent({ <style lang="scss" scoped> .alqyeyti { + > .key, > .value { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + > .key { font-size: 0.85em; padding: 0 0 0.25em 0; opacity: 0.75; } + + &.oneline { + display: flex; + + > .key { + width: 30%; + font-size: 1em; + padding: 0 8px 0 0; + } + + > .value { + width: 70%; + } + } } </style> |