Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
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
Vũ Hoàng Anh
canifa_note
Commits
07f0c3f0
Unverified
Commit
07f0c3f0
authored
Dec 02, 2022
by
boojack
Committed by
GitHub
Dec 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update global css (#657)
parent
a467a7c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
MemoResources.tsx
web/src/components/MemoResources.tsx
+3
-1
global.css
web/src/css/global.css
+1
-1
main.tsx
web/src/main.tsx
+4
-4
No files found.
web/src/components/MemoResources.tsx
View file @
07f0c3f0
...
...
@@ -45,8 +45,10 @@ const MemoResources: React.FC<Props> = (props: Props) => {
return
(
<
Image
className=
"memo-resource"
key=
{
resource
.
id
}
imgUrls=
{
imgUrls
}
index=
{
imgUrls
.
findIndex
((
item
)
=>
item
===
url
)
}
/>
);
}
else
{
}
else
if
(
resource
.
type
.
startsWith
(
"video"
))
{
return
<
video
className=
"memo-resource"
controls
key=
{
resource
.
id
}
src=
{
url
}
/>;
}
else
{
return
null
;
}
})
}
</
div
>
...
...
web/src/
less/global.le
ss
→
web/src/
css/global.c
ss
View file @
07f0c3f0
body
,
html
{
@apply text-base;
@apply
text-base
bg-white
dark
:
bg-zinc-800
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"PingFang SC"
,
"Noto Sans"
,
"Noto Sans CJK SC"
,
"Microsoft YaHei UI"
,
"Microsoft YaHei"
,
"WenQuanYi Micro Hei"
,
sans-serif
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
...
...
web/src/main.tsx
View file @
07f0c3f0
import
{
CssVarsProvider
}
from
"@mui/joy"
;
import
dayjs
from
"dayjs"
;
import
relativeTime
from
"dayjs/plugin/relativeTime"
;
import
{
createRoot
}
from
"react-dom/client"
;
...
...
@@ -6,14 +7,13 @@ import store from "./store";
import
App
from
"./App"
;
import
"./i18n"
;
import
"./helpers/polyfill"
;
import
"highlight.js/styles/github.css"
;
import
"./less/global.less"
;
import
"./css/tailwind.css"
;
import
"dayjs/locale/zh"
;
import
"dayjs/locale/fr"
;
import
"dayjs/locale/vi"
;
import
{
CssVarsProvider
}
from
"@mui/joy"
;
import
theme
from
"./theme"
;
import
"highlight.js/styles/github.css"
;
import
"./css/global.css"
;
import
"./css/tailwind.css"
;
dayjs
.
extend
(
relativeTime
);
...
...
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