Jerrycool commited on
Commit
b2781b5
·
verified ·
1 Parent(s): 43f4ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -14
app.py CHANGED
@@ -447,25 +447,29 @@ citation_css = """
447
  """
448
 
449
  about_image_css = """
450
- /* --- CSS for the Image in the About Tab --- */
451
- #intro-image img { /* Target the actual <img> tag inside the Gradio component */
452
- display: block; /* Treat the image as a block element */
453
- max-width: 800px; /* Set a maximum width (adjust as needed) */
454
- width: 90%; /* Make width responsive (e.g., 90% of its container) */
455
- height: auto; /* Maintain aspect ratio */
456
- margin-top: 2rem; /* Add space above the image */
457
- margin-bottom: 1rem; /* Add space below the image */
458
- margin-left: auto; /* Center the image horizontally */
459
- margin-right: auto; /* Center the image horizontally */
460
- border-radius: 8px; /* Optional: add rounded corners */
461
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
 
 
 
 
462
  }
463
 
464
  /* Optional: Different styles for smaller screens */
465
  @media (max-width: 768px) {
466
  #intro-image img {
467
- max-width: 100%; /* Allow it to use full width on small screens */
468
- width: 95%; /* Adjust percentage if needed */
469
  margin-top: 1.5rem;
470
  }
471
  }
 
447
  """
448
 
449
  about_image_css = """
450
+ /* --- CSS for the Image container in the About Tab --- */
451
+ #intro-image {
452
+ background-color: transparent !important;
453
+ padding: 0 !important;
454
+ border: none !important;
455
+ }
456
+
457
+ /* --- CSS for the Image tag itself in the About Tab --- */
458
+ #intro-image img { /* Target the actual <img> tag */
459
+ display: block;
460
+ max-width: 800px;
461
+ width: 90%;
462
+ height: auto;
463
+ margin: 2rem auto 1rem auto; /* Adjusted margin slightly */
464
+ border-radius: 8px;
465
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
466
  }
467
 
468
  /* Optional: Different styles for smaller screens */
469
  @media (max-width: 768px) {
470
  #intro-image img {
471
+ max-width: 100%;
472
+ width: 95%;
473
  margin-top: 1.5rem;
474
  }
475
  }