Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from containerish/fix-card-component
Browse files Browse the repository at this point in the history
fix: fixed card component hoverable
  • Loading branch information
jay-dee7 authored Nov 18, 2021
2 parents 17bc274 + d13a17a commit a58fec8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ node_modules
# misc
.DS_Store
.env.local
.env
.env.development.local
.env.test.local
.env.production.local
Expand Down
26 changes: 14 additions & 12 deletions src/components/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Input, AutoComplete } from 'antd';
import {Input, AutoComplete, Tooltip} from 'antd';
import { UserOutlined } from '@ant-design/icons';

const renderTitle = (title) => (
Expand Down Expand Up @@ -50,17 +50,19 @@ const renderItem = (title, count) => ({
// ];

const Complete = ({options=[]}) => (
<AutoComplete
disabled
dropdownClassName="certain-category-search-dropdown"
dropdownMatchSelectWidth={500}
style={{
width: "100%",
}}
options={options}
>
<Input.Search size="large" placeholder="Search for container images" />
</AutoComplete>
<Tooltip title="coming soon">
<AutoComplete
disabled
dropdownClassName="certain-category-search-dropdown"
dropdownMatchSelectWidth={500}
style={{
width: "100%",
}}
options={options}
>
<Input.Search size="large" placeholder="Search for container images" />
</AutoComplete>
</Tooltip>
);

export default Complete;
1 change: 0 additions & 1 deletion src/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const Tile = ({ repoName, author, updatedAt }) => {
<div
style={{ background: '#ccd7e3', width: "90%", borderRadius: 8, boxShadow: "0.7px 1.4px 1.4px hsl(0deg 0% 0% / 0.48)", margin: "0.5% 0" }}>
<Card
hoverable
headStyle={{ background: 'rgba(204,215,227,0.61)', fontWeight: "bold" }}
title={<Typography.Title level={4}>
{author + "/" + repoName}
Expand Down
5 changes: 2 additions & 3 deletions src/components/menu.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Button, Menu } from "antd";
import {Button, Menu, Tooltip} from "antd";
import parachute from "../styles/pictures/parachute.png";

import Complete from "./autocomplete";
import { UserOutlined, ArrowUpOutlined } from "@ant-design/icons";
import React from "react";
import { Link } from "react-router-dom";
import { useHistory } from "react-router";

const styles = {
Expand Down Expand Up @@ -99,4 +98,4 @@ const NavBar = () => {
</Menu.Item>
</Menu>
}
export default NavBar;
export default NavBar;

0 comments on commit a58fec8

Please sign in to comment.