🎨 Tweaking styling of the library table

This commit is contained in:
2022-10-28 21:46:16 -07:00
parent ff5ce10e17
commit c6a3be968a
3 changed files with 14 additions and 8 deletions

View File

@@ -413,17 +413,21 @@ pre {
.sticky { .sticky {
background: #fffffc; background: #fffffc;
position: sticky; position: sticky;
top: 107px; top: 40px;
z-index: 5; z-index: 5;
.title { .title {
background: #fffffc; background: #fffffc;
position: relative; position: relative;
top: -56px; top: 0px;
z-index: 99999; z-index: 99999;
padding-top: 20px; padding-top: 20px;
} }
} }
.header-area {
width: 100%;
padding: 10px 0 15px 0;
}
.library { .library {
table { table {
@@ -431,7 +435,7 @@ pre {
width: 100%; width: 100%;
thead { thead {
position: sticky; position: sticky;
top: 176px; top: 216px;
z-index: 1; z-index: 1;
background: #fffffc; background: #fffffc;
min-height: 130px; min-height: 130px;

View File

@@ -277,9 +277,11 @@ export const Library = (): ReactElement => {
return ( return (
<section className="container"> <section className="container">
<div className="section"> <div className="section">
<div className="sticky"><h1 className="title">Library</h1></div> <div className="header-area sticky">
{/* Search bar */} <h1 className="title">Library</h1>
<SearchBar /> {/* Search bar */}
<SearchBar />
</div>
{!isUndefined(searchResults.hits) && ( {!isUndefined(searchResults.hits) && (
<div> <div>
<div className="library"> <div className="library">

View File

@@ -26,14 +26,14 @@ export const SearchBar = (): ReactElement => {
); );
}, []); }, []);
return ( return (
<div className="sticky"> <div className="sticky box column is-half">
<Form <Form
onSubmit={handleSubmit} onSubmit={handleSubmit}
initialValues={{}} initialValues={{}}
render={({ handleSubmit, form, submitting, pristine, values }) => ( render={({ handleSubmit, form, submitting, pristine, values }) => (
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit}>
<div className="field is-grouped"> <div className="field is-grouped">
<div className="control search"> <div className="control search is-expanded">
<Field name="search"> <Field name="search">
{({ input, meta }) => { {({ input, meta }) => {
return ( return (