mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-09 07:24:03 +08:00
parent
3aa9551414
commit
b5efda6a82
@ -25,7 +25,7 @@
|
|||||||
<div>{{ item.data.slice(0, 500).trim() }}</div>
|
<div>{{ item.data.slice(0, 500).trim() }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.type === 'image'">
|
<template v-if="item.type === 'image'">
|
||||||
<img :src="item.data" alt="Image" />
|
<img class="clip-data-image" :src="item.data" alt="Image" />
|
||||||
<div class="clip-data-status">{{ item.size }}</div>
|
<div class="clip-data-status">{{ item.size }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.type === 'file'">
|
<template v-if="item.type === 'file'">
|
||||||
|
@ -45,16 +45,20 @@
|
|||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
background-color: @bg-color;
|
img.clip-data-image {
|
||||||
img {
|
max-height: 140px; // 比外框 max-height少一点 因为有 5px的边框
|
||||||
max-height: 150px;
|
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
|
padding: 5px;
|
||||||
|
background-color: @text-color-lighter;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.clip-data-status {
|
.clip-data-status {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
color: @bg-color;
|
color: @bg-color;
|
||||||
background-color: @text-color;
|
background-color: @text-color-lighter;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user