Skip to content

Commit

Permalink
Merge pull request #2103 from Sefaria/feature/sc-29226/library-build-…
Browse files Browse the repository at this point in the history
…new-note-component

Adjust <NoteListing/>
  • Loading branch information
yitzhakc authored Nov 28, 2024
2 parents 231550f + 4c70587 commit 2c95605
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 8 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -13993,6 +13993,14 @@ span.ref-link-color-3 {color: blue}
}
}

.noteRefTitle {
font-size: 18px;
}

.noteText{
color: var(--dark-grey);
}

.footerContainer {
max-width: 100%;
display: flex;
Expand Down
14 changes: 3 additions & 11 deletions static/js/NoteListing.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import $ from './sefaria/sefariaJquery';
import Sefaria from './sefaria/sefaria';
import TextRange from './TextRange';
import { AddToSourceSheetWindow } from './AddToSourceSheet';
import { Note } from './Misc';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -39,19 +38,12 @@ class NoteListing extends Component {

return (<div className="noteListing">
<div className="actionButtons">
<img src="/static/icons/sheet.svg" onClick={this.showSheetModal} />
<img src="/static/icons/circled-x.svg" onClick={this.deleteNote} />
</div>
<a href={url}>
{this.props.showText ?
<TextRange sref={data.ref} /> :
<span className="textRange placeholder">
<span className="title">
{data.ref}
</span>
</span> }
<a className="noteRefTitle" href={url}>
<span>{data.ref}</span>
</a>
<Note text={data.text} />
<span className="noteText"><Note text={data.text}/></span>
{this.state.showSheetModal ?
<div>
<AddToSourceSheetWindow
Expand Down

0 comments on commit 2c95605

Please sign in to comment.