fix: one element of source block's border overflow its parent's width

This commit is contained in:
07akioni 2019-08-08 15:08:00 +08:00
parent ced10676bd
commit ed6e8b3b91

View File

@ -1,7 +1,7 @@
<template> <template>
<div style="overflow: hidden;"> <div style="overflow: hidden;">
<div <div
style="width: 100%; border-radius: 8px; border: 2px solid #5c657eff; height: 39px; background-color: black; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;" style="width: 100%; box-sizing: border-box; border-radius: 8px; border: 2px solid #5c657eff; height: 39px; background-color: black; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;"
@click="collapse = !collapse" @click="collapse = !collapse"
> >
<span v-if="collapse">Click to Expand</span> <span v-if="collapse">Click to Expand</span>