Refactor
This commit is contained in:
		| @@ -39,7 +39,7 @@ | ||||
| 		<div class="body"> | ||||
| 			<p v-if="p.cw != null" class="cw"> | ||||
| 				<span class="text" v-if="p.cw != ''">{{ p.cw }}</span> | ||||
| 				<span class="toggle" @click="showContent = !showContent">{{ showContent ? '%i18n:@hide%' : '%i18n:@see-more%' }}</span> | ||||
| 				<mk-cw-button v-model="showContent"/> | ||||
| 			</p> | ||||
| 			<div class="content" v-show="p.cw == null || showContent"> | ||||
| 				<div class="text"> | ||||
| @@ -352,19 +352,6 @@ root(isDark) | ||||
| 				> .text | ||||
| 					margin-right 8px | ||||
|  | ||||
| 				> .toggle | ||||
| 					display inline-block | ||||
| 					padding 4px 8px | ||||
| 					font-size 0.7em | ||||
| 					color isDark ? #393f4f : #fff | ||||
| 					background isDark ? #687390 : #b1b9c1 | ||||
| 					border-radius 2px | ||||
| 					cursor pointer | ||||
| 					user-select none | ||||
|  | ||||
| 					&:hover | ||||
| 						background isDark ? #707b97 : #bbc4ce | ||||
|  | ||||
| 			> .content | ||||
| 				> .text | ||||
| 					cursor default | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| 		<div class="body"> | ||||
| 			<p v-if="note.cw != null" class="cw"> | ||||
| 				<span class="text" v-if="note.cw != ''">{{ note.cw }}</span> | ||||
| 				<span class="toggle" @click="showContent = !showContent">{{ showContent ? '%i18n:@hide%' : '%i18n:@see-more%' }}</span> | ||||
| 				<mk-cw-button v-model="showContent"/> | ||||
| 			</p> | ||||
| 			<div class="content" v-show="note.cw == null || showContent"> | ||||
| 				<mk-sub-note-content class="text" :note="note"/> | ||||
| @@ -76,19 +76,6 @@ root(isDark) | ||||
| 				> .text | ||||
| 					margin-right 8px | ||||
|  | ||||
| 				> .toggle | ||||
| 					display inline-block | ||||
| 					padding 4px 8px | ||||
| 					font-size 0.7em | ||||
| 					color isDark ? #393f4f : #fff | ||||
| 					background isDark ? #687390 : #b1b9c1 | ||||
| 					border-radius 2px | ||||
| 					cursor pointer | ||||
| 					user-select none | ||||
|  | ||||
| 					&:hover | ||||
| 						background isDark ? #707b97 : #bbc4ce | ||||
|  | ||||
| 			> .content | ||||
| 				> .text | ||||
| 					cursor default | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| 		<div class="body"> | ||||
| 			<p v-if="note.cw != null" class="cw"> | ||||
| 				<span class="text" v-if="note.cw != ''">{{ note.cw }}</span> | ||||
| 				<span class="toggle" @click="showContent = !showContent">{{ showContent ? '%i18n:@hide%' : '%i18n:@see-more%' }}</span> | ||||
| 				<mk-cw-button v-model="showContent"/> | ||||
| 			</p> | ||||
| 			<div class="content" v-show="note.cw == null || showContent"> | ||||
| 				<mk-sub-note-content class="text" :note="note"/> | ||||
| @@ -77,19 +77,6 @@ root(isDark) | ||||
| 				> .text | ||||
| 					margin-right 8px | ||||
|  | ||||
| 				> .toggle | ||||
| 					display inline-block | ||||
| 					padding 4px 8px | ||||
| 					font-size 0.7em | ||||
| 					color isDark ? #393f4f : #fff | ||||
| 					background isDark ? #687390 : #b1b9c1 | ||||
| 					border-radius 2px | ||||
| 					cursor pointer | ||||
| 					user-select none | ||||
|  | ||||
| 					&:hover | ||||
| 						background isDark ? #707b97 : #bbc4ce | ||||
|  | ||||
| 			> .content | ||||
| 				> .text | ||||
| 					cursor default | ||||
|   | ||||
| @@ -18,7 +18,7 @@ | ||||
| 			<div class="body"> | ||||
| 				<p v-if="p.cw != null" class="cw"> | ||||
| 					<span class="text" v-if="p.cw != ''">{{ p.cw }}</span> | ||||
| 					<span class="toggle" @click="showContent = !showContent">{{ showContent ? '%i18n:@hide%' : '%i18n:@see-more%' }}</span> | ||||
| 					<mk-cw-button v-model="showContent"/> | ||||
| 				</p> | ||||
| 				<div class="content" v-show="p.cw == null || showContent"> | ||||
| 					<div class="text"> | ||||
| @@ -401,19 +401,6 @@ root(isDark) | ||||
| 					> .text | ||||
| 						margin-right 8px | ||||
|  | ||||
| 					> .toggle | ||||
| 						display inline-block | ||||
| 						padding 4px 8px | ||||
| 						font-size 0.7em | ||||
| 						color isDark ? #393f4f : #fff | ||||
| 						background isDark ? #687390 : #b1b9c1 | ||||
| 						border-radius 2px | ||||
| 						cursor pointer | ||||
| 						user-select none | ||||
|  | ||||
| 						&:hover | ||||
| 							background isDark ? #707b97 : #bbc4ce | ||||
|  | ||||
| 				> .content | ||||
|  | ||||
| 					> .text | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo