mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 一些UI优化
This commit is contained in:
parent
0d0e729944
commit
4e8832f263
@ -76,6 +76,7 @@
|
||||
:key="item"
|
||||
@click="applyCanvasPresetScale(item)"
|
||||
>{{item}}%</PopoverMenuItem>
|
||||
<PopoverMenuItem center @click="resetCanvas()">适应屏幕</PopoverMenuItem>
|
||||
</template>
|
||||
<span class="text">{{canvasScalePercentage}}</span>
|
||||
</Popover>
|
||||
@ -131,7 +132,7 @@ const {
|
||||
canvasScalePercentage,
|
||||
} = useScaleCanvas()
|
||||
|
||||
const canvasScalePresetList = [200, 150, 100, 80, 50]
|
||||
const canvasScalePresetList = [200, 150, 125, 100, 75, 50]
|
||||
const canvasScaleVisible = ref(false)
|
||||
|
||||
const applyCanvasPresetScale = (value: number) => {
|
||||
|
@ -48,7 +48,8 @@ const selectSlideTemplate = (slide: Slide) => {
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
outline: 1px solid $borderColor;
|
||||
outline: 2px solid $borderColor;
|
||||
transition: outline $transitionDelay;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
|
@ -491,7 +491,7 @@ const updateViewportRatio = (value: number) => {
|
||||
}
|
||||
|
||||
&:hover .btns {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.btns {
|
||||
@ -500,8 +500,10 @@ const updateViewportRatio = (value: number) => {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: none;
|
||||
display: flex;
|
||||
background-color: rgba($color: #000, $alpha: .25);
|
||||
opacity: 0;
|
||||
transition: opacity $transitionDelay;
|
||||
}
|
||||
.btn {
|
||||
width: 72px;
|
||||
|
@ -401,7 +401,7 @@ defineExpose({
|
||||
}
|
||||
|
||||
.icon-content {
|
||||
transition: all 0.2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
opacity: 0.8;
|
||||
color: #fff;
|
||||
}
|
||||
|
@ -517,7 +517,7 @@ useMSE(props.src, videoRef)
|
||||
}
|
||||
|
||||
.icon-content {
|
||||
transition: all 0.2s ease-in-out;
|
||||
transition: all .2s ease-in-out;
|
||||
opacity: 0.8;
|
||||
color: #fff;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user