forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make attachments editable in the UI (keybase#24180)
* make attachments editable in the UI * consolidate, review feedback * fix test * fix other test
- Loading branch information
Showing
17 changed files
with
215 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import * as Styles from '../../../styles' | ||
|
||
const editing = { | ||
backgroundColor: Styles.globalColors.yellowLight, | ||
borderRadius: 2, | ||
color: Styles.globalColors.blackOrBlack, | ||
paddingLeft: Styles.globalMargins.tiny, | ||
paddingRight: Styles.globalMargins.tiny, | ||
} | ||
const sent = Styles.platformStyles({ | ||
isElectron: { | ||
// Make text selectable. On mobile we implement that differently. | ||
cursor: 'text', | ||
userSelect: 'text', | ||
whiteSpace: 'pre-wrap', | ||
width: '100%', | ||
wordBreak: 'break-word', | ||
} as const, | ||
isMobile: { | ||
...Styles.globalStyles.flexBoxColumn, | ||
}, | ||
}) | ||
const sentEditing = { | ||
...sent, | ||
...editing, | ||
} | ||
const pendingFail = { | ||
...sent, | ||
} | ||
const pendingFailEditing = { | ||
...pendingFail, | ||
...editing, | ||
} | ||
export const sharedStyles = Styles.styleSheetCreate( | ||
() => | ||
({ | ||
editing, | ||
highlighted: { | ||
color: Styles.globalColors.blackOrBlack, | ||
}, | ||
pendingFail, | ||
pendingFailEditing, | ||
sent, | ||
sentEditing, | ||
} as const) | ||
) |
Oops, something went wrong.