Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32089030
chat-constants.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
chat-constants.js
View Options
// @flow
import
{
messageKey
}
from
'lib/shared/message-utils.js'
;
import
type
{
MessageInfo
}
from
'lib/types/message-types.js'
;
import
type
{
ComposedMessageID
}
from
'./composed-message.react.js'
;
export
const
tooltipStyle
=
{
paddingLeft
:
5
,
paddingRight
:
5
,
rowGap
:
3
,
};
export
const
tooltipLabelStyle
=
{
padding
:
6
,
height
:
20
,
};
export
const
tooltipButtonStyle
=
{
paddingLeft
:
6
,
paddingRight
:
6
,
width
:
30
,
height
:
38
,
};
export
const
reactionTooltipStyle
=
{
paddingTop
:
8
,
paddingBottom
:
8
,
paddingLeft
:
12
,
paddingRight
:
12
,
rowGap
:
4
,
maxWidth
:
136
,
maxHeight
:
162
,
};
export
const
reactionSeeMoreLabel
=
'See more'
;
export
const
reactionSeeMoreLabelStyle
=
{
height
:
18
,
};
export
const
typeaheadStyle
=
{
tooltipWidth
:
296
,
tooltipMaxHeight
:
268
,
tooltipVerticalPadding
:
16
,
tooltipLeftOffset
:
16
,
tooltipTopOffset
:
4
,
rowHeight
:
40
,
};
export
const
getComposedMessageID
=
(
messageInfo
:
MessageInfo
,
)
:
ComposedMessageID
=>
{
return
`ComposedMessageBox-
${
messageKey
(
messageInfo
)
}
`
;
};
export
const
defaultMaxTextAreaHeight
=
150
;
// The editBoxBottomRowHeight is the height of the bottom row in the edit box
// which is the height of the buttons in the bottom row.
export
const
editBoxBottomRowHeight
=
22
;
// The editBoxHeight is a height of the all elements of the edit box
// except for the textarea.
// It consists of:
// - 2 * 10px: .editMessage padding (edit-text-message.css)
// - 10px: .bottomRow padding between the bottom row buttons
// and the textarea (edit-text-message.css)
// - 2 * 8px: .inputBarTextInput padding (chat-input-bar.css)
// - 22px: height of the bottom row in the edit box (explained above)
// - textarea height which is NOT included here
export
const
editBoxHeight
:
number
=
3
*
10
+
2
*
8
+
editBoxBottomRowHeight
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Dec 7, 7:55 AM (5 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5724278
Default Alt Text
chat-constants.js (1 KB)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment