Skip to content

Commit

Permalink
Update some css settings of side navigation.
Browse files Browse the repository at this point in the history
  • Loading branch information
StarConnor committed Jul 28, 2024
1 parent d20a3e7 commit 5eef3ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ui/src/components/app/sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export const SideNav = ({logitsExist}: {logitsExist:boolean}) => {
}, );

return (
<Card className="side-nav">
<CardHeader>
<CardTitle className="flex justify-between items-center text-base">
<Card className="side-nav py-4">
<CardHeader className="p-0">
<CardTitle className="flex justify-between items-center text-xs p-2">
<span className="font-bold">CONTENTS</span>
</CardTitle>
</CardHeader>
<CardContent>
<div className="flex flex-col gap-4">
<div className="flex flex-col">
<ul >
{idList.map((item) => (
<li key={item} style={{ position: 'relative', marginBottom: '10px' }}>
Expand Down
3 changes: 1 addition & 2 deletions ui/src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ html {
position: fixed;
right: 0;
top: 0;
width: 125px;
width: 80px;
height: 100%;
background-color: #f4f4f4;
/* padding: 10px; */
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}
4 changes: 2 additions & 2 deletions ui/src/routes/features/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export const FeaturesPage = () => {
}, [dictionariesState.value]);

return (
<div>
<div id="Top">
<AppNavbar />
<SideNav logitsExist={(featureState.value && featureState.value.logits != null) ?? false}/>
<div className="pt-4 pb-20 px-20 flex flex-col items-center gap-12">
<div id="Top" className="container grid grid-cols-[auto_600px_auto_auto] justify-center items-center gap-4">
<div className="container grid grid-cols-[auto_600px_auto_auto] justify-center items-center gap-4">
<span className="font-bold justify-self-end">Select dictionary:</span>
<Select
disabled={dictionariesState.loading || featureState.loading}
Expand Down

0 comments on commit 5eef3ce

Please sign in to comment.