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

fix: fixed card component hoverable #18

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;