Skip to content

Commit b7dcf03

Browse files
authored
adjust css so it doesn't take up space when invisible (keybase#26352)
1 parent c1f4495 commit b7dcf03

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎shared/chat/conversation/messages/wrapper/exploding-meta/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class ExplodingMeta2 extends React.Component<Props2> {
166166
children = (
167167
<Kb.Box2 direction="horizontal" gap="xtiny">
168168
<Kb.Box2
169-
className={Kb.Styles.classNames('explodingTimeContainer', 'tooltip-bottom-left')}
169+
className={Kb.Styles.classNames('explodingTimeContainer', 'tooltip-top-left')}
170170
direction="horizontal"
171171
tooltip="Exploding message"
172172
style={Kb.Styles.collapseStyles([

‎shared/desktop/renderer/style.css‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,15 @@ input {
553553
text-rendering: optimizeLegibility;
554554
white-space: nowrap;
555555
z-index: 999;
556-
top: 0;
557556
left: 50%;
558557
transform: translate(-50%, -100%);
558+
/* move out so it doesn't affect measuring*/
559+
top: -99999px;
560+
}
561+
562+
.tooltip:hover:before {
563+
opacity: 1;
564+
top: initial;
559565
}
560566

561567
.tooltip-bottom-center:before {
@@ -589,7 +595,3 @@ input {
589595
left: initial;
590596
right: 100%;
591597
}
592-
593-
.tooltip:hover:before {
594-
opacity: 1;
595-
}

0 commit comments

Comments
 (0)