misskey/src/client/components/form/key-value-view.vue

38 lines
603 B
Vue
Raw Normal View History

<template>
<div class="_formItem">
<div class="_formPanel anocepby">
<span class="key"><slot name="key"></slot></span>
<span class="value"><slot name="value"></slot></span>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import './form.scss';
export default defineComponent({
});
</script>
<style lang="scss" scoped>
.anocepby {
display: flex;
align-items: center;
padding: 14px 16px;
2021-04-16 08:44:17 +02:00
> .key {
margin-right: 8px;
}
> .value {
margin-left: auto;
opacity: 0.7;
2021-04-16 08:44:17 +02:00
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
</style>