mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: polish setting dialog (#6)
This commit is contained in:
@@ -11,7 +11,7 @@ const PreferencesSection: React.FC<Props> = () => {
|
|||||||
const { globalState } = useContext(appContext);
|
const { globalState } = useContext(appContext);
|
||||||
const { useTinyUndoHistoryCache, shouldHideImageUrl, shouldSplitMemoWord, shouldUseMarkdownParser } = globalState;
|
const { useTinyUndoHistoryCache, shouldHideImageUrl, shouldSplitMemoWord, shouldUseMarkdownParser } = globalState;
|
||||||
|
|
||||||
const demoMemoContent = "👋 你好呀~\n我是一个demo:\n* 👏 欢迎使用memos;";
|
const demoMemoContent = "👋 你好呀~欢迎使用memos!\n* ✨ **开源项目**;\n* 😋 精美且细节的视觉样式;\n* 📑 体验优良的交互逻辑;";
|
||||||
|
|
||||||
const handleOpenTinyUndoChanged = () => {
|
const handleOpenTinyUndoChanged = () => {
|
||||||
globalStateService.setAppSetting({
|
globalStateService.setAppSetting({
|
||||||
|
@@ -6,26 +6,29 @@
|
|||||||
|
|
||||||
&.username-label {
|
&.username-label {
|
||||||
> input {
|
> input {
|
||||||
flex-grow: 0 !important;
|
flex-grow: 0;
|
||||||
width: 128px;
|
width: 128px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
margin-right: 4px;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border: 1px solid lightgray;
|
border: 1px solid lightgray;
|
||||||
border-radius: 0;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: black;
|
border-color: black;
|
||||||
|
|
||||||
|
+ .btns-container {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .btns-container {
|
> .btns-container {
|
||||||
.flex(row, flex-start, center);
|
.flex(row, flex-start, center);
|
||||||
margin-left: 4px;
|
margin-left: 8px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
display: none;
|
||||||
|
|
||||||
> .btn {
|
> .btn {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -80,15 +83,14 @@
|
|||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
cursor: pointer;
|
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bind-btn,
|
&.bind-btn {
|
||||||
&.link-btn {
|
|
||||||
color: white;
|
color: white;
|
||||||
background-color: @text-green;
|
background-color: @text-green;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@@ -13,8 +13,8 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
> .icon-img {
|
> .icon-img {
|
||||||
width: 18px;
|
width: 16px;
|
||||||
height: 18px;
|
height: 16px;
|
||||||
margin: 0 8px;
|
margin: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -55,6 +55,7 @@
|
|||||||
.flex(row, flex-start, center);
|
.flex(row, flex-start, center);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
|
||||||
> .normal-text {
|
> .normal-text {
|
||||||
|
Reference in New Issue
Block a user