diff --git a/components.d.ts b/components.d.ts index bacd702..0ad6091 100644 --- a/components.d.ts +++ b/components.d.ts @@ -37,6 +37,7 @@ declare module '@vue/runtime-core' { MessageBox: typeof import('./src/components/MessageBox.vue')['default'] MusicPlayer: typeof import('./src/components/MusicPlayer.vue')['default'] PersonalInfo: typeof import('./src/components/PersonalInfo.vue')['default'] + PhotoItem: typeof import('./src/components/PhotoItem.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] TopNavBar: typeof import('./src/components/TopNavBar.vue')['default'] diff --git a/index.html b/index.html index 8ce65e2..70dee2a 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +
diff --git a/src/assets/main.css b/src/assets/main.css index 2135381..706fb59 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -106,6 +106,21 @@ a { padding: 10px; } +.blog-description .blog-description-title { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: start; +} + +.blog-description .blog-description-title.title-text { + white-space: nowrap; + display: inline-block; + max-width: calc(100% - 65px); + overflow: hidden; + text-overflow: ellipsis; +} + .info { height: 20px; } diff --git a/src/components/PhotoItem.vue b/src/components/PhotoItem.vue new file mode 100644 index 0000000..475d6f1 --- /dev/null +++ b/src/components/PhotoItem.vue @@ -0,0 +1,107 @@ + +{{ item.blogDescription }}
@@ -67,8 +69,9 @@