Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a08a6c

Browse files
committed
feat: 🎸 move type know to the right
1 parent243cd0c commit7a08a6c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/buttons/CrdtTypeSwitch/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const CrdtTypeSwitch: React.FC<CrdtTypeSwitchProps> = ({
3636
};
3737

3838
return (
39-
<span style={{display: 'inline-block', padding: '04px0 0', margin: '-1px 0'}}>
39+
<span style={{display: 'inline-block', padding: '0 0 0 4px', margin: '-1px 0'}}>
4040
<TypeSwitch
4141
value={types[typeIndex]}
4242
onClick={(e) => {

‎src/inserts/ValueInput.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export const ValueInput: React.FC<ValueInputProps> = ({
4343
const style = inputStyle(theme, !theme.isLight, value);
4444
style.display = visible ? undefined : 'none';
4545
style.margin = '-1px 0 -1px -2px';
46-
style.padding = '3px 4px';
46+
style.padding = '3px 4px 3px 5px';
4747
style.border = `1px solid ${theme.g(0.85)}`;
4848

49-
letbeforeValue: React.ReactNode = null;
49+
letafterValue: React.ReactNode = null;
5050

5151
if (types && types.length && withType) {
52-
beforeValue = (
52+
afterValue = (
5353
<CrdtTypeSwitch
5454
type={type}
5555
onSubmit={handleSubmit}
@@ -62,7 +62,6 @@ export const ValueInput: React.FC<ValueInputProps> = ({
6262

6363
return (
6464
<span className={css.input} style={style}>
65-
{beforeValue}
6665
<FlexibleInput
6766
focus={focus}
6867
inp={(el) => {
@@ -86,6 +85,7 @@ export const ValueInput: React.FC<ValueInputProps> = ({
8685
}
8786
}}
8887
/>
88+
{afterValue}
8989
</span>
9090
);
9191
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp