Tweak UI
This commit is contained in:
		
							parent
							
								
									9c34ef7d74
								
							
						
					
					
						commit
						481b46ac9e
					
				
					 5 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ import {
 | 
			
		|||
	faFileArchive,
 | 
			
		||||
	faFilm
 | 
			
		||||
	} from '@fortawesome/free-solid-svg-icons';
 | 
			
		||||
import ImgWithBlurhash from './img-with-blurhash.vue';
 | 
			
		||||
import ImgWithBlurhash from '@client/components/img-with-blurhash.vue';
 | 
			
		||||
import { ColdDeviceStorage } from '@client/store';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,6 +71,7 @@ export default defineComponent({
 | 
			
		|||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.xubzgfgb {
 | 
			
		||||
	position: relative;
 | 
			
		||||
	width: 100%;
 | 
			
		||||
	height: 100%;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -82,6 +83,7 @@ export default defineComponent({
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	> canvas {
 | 
			
		||||
		position: absolute;
 | 
			
		||||
		object-fit: cover;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ import { faExclamationTriangle, faEyeSlash } from '@fortawesome/free-solid-svg-i
 | 
			
		|||
import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
 | 
			
		||||
import { extractAvgColorFromBlurhash } from '@client/scripts/extract-avg-color-from-blurhash';
 | 
			
		||||
import ImageViewer from './image-viewer.vue';
 | 
			
		||||
import ImgWithBlurhash from './img-with-blurhash.vue';
 | 
			
		||||
import ImgWithBlurhash from '@client/components/img-with-blurhash.vue';
 | 
			
		||||
import * as os from '@client/os';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,10 +6,11 @@
 | 
			
		|||
		<div class="stream" v-if="!fetching && images.length > 0">
 | 
			
		||||
			<MkA v-for="image in images"
 | 
			
		||||
				class="img"
 | 
			
		||||
				:style="`background-image: url(${thumbnail(image.file)})`"
 | 
			
		||||
				:to="notePage(image.note)"
 | 
			
		||||
				:key="image.id"
 | 
			
		||||
			></MkA>
 | 
			
		||||
			>
 | 
			
		||||
				<ImgWithBlurhash :hash="image.blurhash" :src="thumbnail(image.file)" :alt="image.name" :title="image.name"/>
 | 
			
		||||
			</MkA>
 | 
			
		||||
		</div>
 | 
			
		||||
		<p class="empty" v-if="!fetching && images.length == 0">{{ $ts.nothing }}</p>
 | 
			
		||||
	</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -23,10 +24,12 @@ import { getStaticImageUrl } from '@client/scripts/get-static-image-url';
 | 
			
		|||
import notePage from '../../filters/note';
 | 
			
		||||
import * as os from '@client/os';
 | 
			
		||||
import MkContainer from '@client/components/ui/container.vue';
 | 
			
		||||
import ImgWithBlurhash from '@client/components/img-with-blurhash.vue';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
	components: {
 | 
			
		||||
		MkContainer,
 | 
			
		||||
		ImgWithBlurhash,
 | 
			
		||||
	},
 | 
			
		||||
	props: {
 | 
			
		||||
		user: {
 | 
			
		||||
| 
						 | 
				
			
			@ -88,10 +91,8 @@ export default defineComponent({
 | 
			
		|||
 | 
			
		||||
		> .img {
 | 
			
		||||
			height: 128px;
 | 
			
		||||
			background-position: center center;
 | 
			
		||||
			background-size: cover;
 | 
			
		||||
			background-clip: content-box;
 | 
			
		||||
			border-radius: 6px;
 | 
			
		||||
			overflow: clip;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,6 +26,7 @@ html {
 | 
			
		|||
	background-position: center;
 | 
			
		||||
	color: var(--fg);
 | 
			
		||||
	overflow: auto;
 | 
			
		||||
	overflow-wrap: break-word;
 | 
			
		||||
	font-family: "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif;
 | 
			
		||||
	line-height: 1.35;
 | 
			
		||||
	text-size-adjust: 100%;
 | 
			
		||||
| 
						 | 
				
			
			@ -88,10 +89,6 @@ html._themeChanging_ {
 | 
			
		|||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body {
 | 
			
		||||
	overflow-wrap: break-word;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
html, body {
 | 
			
		||||
	margin: 0;
 | 
			
		||||
	padding: 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue