I recently embarked on a project to create an HTML page utilizing Materialize CSS and Bootstrap. My goal was to incorporate cards representing YouTube videos, along with a search bar that could filter through the cards and display the relevant one. However, the solution I found only partially met my expectations.
.searchBox{
margin: 4em;
}
.grid-container{
display: grid;
border: 1px solid black;
grid-template-columns: 70% 10% 20%;
margin: 4em;
}
.grid-item1{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
grid-gap: 20px;
border: 1px solid black;
}
.grid-item2{
border: 1px solid black;
}
.grid-item3{
border: 1px solid black;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>Document</title>
<link href="./style.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
If you test the code snippet, you'll notice that searching for "aaa/bbb/ccc" causes the card image and "gsp430/.../..." portion to disappear entirely. Similarly, if you search for something like "gsp430," the card title and image vanish. I'm seeking a solution that would display the complete card despite the search term. Can anyone suggest a workaround?