Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Newspaper Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lap nguyen
Newspaper Frontend
Commits
74b0cef4
Commit
74b0cef4
authored
Dec 15, 2022
by
Ken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: modify content detail
parent
fccb3a3d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
125 deletions
+3
-125
_styles.scss
src/_styles.scss
+0
-1
NewsDetail.scss
src/pages/NewsDetail/NewsDetail.scss
+2
-0
index.tsx
src/pages/NewsDetail/index.tsx
+1
-0
_reset.scss
src/styles/_reset.scss
+0
-124
No files found.
src/_styles.scss
View file @
74b0cef4
@use
"~bootstrap/scss/bootstrap"
;
@use
"~bootstrap/scss/bootstrap"
;
@use
"styles/components"
;
@use
"styles/components"
;
@use
"styles/pages"
;
@use
"styles/pages"
;
@use
"styles/reset"
;
@use
"styles/global"
;
@use
"styles/global"
;
src/pages/NewsDetail/NewsDetail.scss
View file @
74b0cef4
.news-detail
{
}
src/pages/NewsDetail/index.tsx
View file @
74b0cef4
...
@@ -36,6 +36,7 @@ const NewsDetail = () => {
...
@@ -36,6 +36,7 @@ const NewsDetail = () => {
<>
<>
{
newsDetail
?
(
{
newsDetail
?
(
<
div
<
div
className=
"news-detail container py-4"
dangerouslySetInnerHTML=
{
{
dangerouslySetInnerHTML=
{
{
__html
:
purifyHTML
(
newsDetail
.
newspaperContent
.
content
),
__html
:
purifyHTML
(
newsDetail
.
newspaperContent
.
content
),
}
}
}
}
...
...
src/styles/_reset.scss
deleted
100644 → 0
View file @
fccb3a3d
html
,
body
,
div
,
span
,
applet
,
object
,
iframe
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
blockquote
,
pre
,
a
,
abbr
,
acronym
,
address
,
big
,
cite
,
code
,
del
,
dfn
,
em
,
img
,
ins
,
kbd
,
q
,
s
,
samp
,
small
,
strike
,
strong
,
sub
,
sup
,
tt
,
var
,
b
,
u
,
i
,
center
,
dl
,
dt
,
dd
,
ol
,
ul
,
li
,
fieldset
,
form
,
label
,
legend
,
table
,
caption
,
tbody
,
tfoot
,
thead
,
tr
,
th
,
td
,
article
,
aside
,
canvas
,
details
,
embed
,
figure
,
figcaption
,
footer
,
header
,
hgroup
,
menu
,
nav
,
output
,
ruby
,
section
,
summary
,
time
,
mark
,
audio
,
video
{
margin
:
0
;
padding
:
0
;
border
:
0
;
font-size
:
100%
;
font
:
inherit
;
vertical-align
:
baseline
;
}
/* HTML5 display-role reset for older browsers */
article
,
aside
,
details
,
figcaption
,
figure
,
footer
,
header
,
hgroup
,
menu
,
nav
,
section
{
display
:
block
;
}
body
{
line-height
:
1
;
}
ol
,
ul
{
list-style
:
none
;
}
blockquote
,
q
{
quotes
:
none
;
}
blockquote
:before
,
blockquote
:after
,
q
:before
,
q
:after
{
content
:
''
;
content
:
none
;
}
table
{
border-collapse
:
collapse
;
border-spacing
:
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment