Răsfoiți Sursa

Fix vertical layout for browser (#135)

Engin Can Dinc 2 ani în urmă
părinte
comite
e445f92281
1 a modificat fișierele cu 9 adăugiri și 7 ștergeri
  1. 9 7
      frontend/src/components/Browser.css

+ 9 - 7
frontend/src/components/Browser.css

@@ -1,11 +1,13 @@
 .url {
-    margin: 0.5rem;
-    padding: 0.5rem 1rem;
-    background-color: white;
-    border-radius: 2rem;
-    color: #252526;
+  margin: 0.5rem;
+  padding: 0.5rem 1rem;
+  background-color: white;
+  border-radius: 2rem;
+  color: #252526;
 }
 
 .screenshot {
-    width: 100%;
-}
+  width: 100%;
+  max-height: calc(100vh - 100px); /* 100px is the height of the header */
+  object-fit: cover;
+}