Skip to content

Commit

Permalink
修改图片大小
Browse files Browse the repository at this point in the history
  • Loading branch information
M2030123 committed Sep 5, 2023
1 parent 61aeb4a commit 90f8793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/用户界面/first_page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const images = [
}
.image {
width: 200px;
width: auto;
height: 200px;
display: block;
margin-left: auto;
Expand Down
7 changes: 5 additions & 2 deletions src/components/用户界面/pet_details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,14 @@ const sortedComments = computed(() => {
}
.pet-image {
flex: 1;
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
padding: 10px;
}
.pet-image img {
width: 100%;
height: auto;
width: auto;
height: 300px;
border-radius: 8px;
}
.pet-info {
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
port: 3000,
proxy: {
"^/api": {
target: "http://localhost:6001/",
target: "http://101.42.19.77:6001/",
changeOrigin: true,
//rewrite: (path) => path.replace(/^\/api/, ""),
},
Expand Down

0 comments on commit 90f8793

Please sign in to comment.