mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #24545 from overleaf/as-customerio-toolbar-placeholders
[web] Create placeholders for customer.io inline messages GitOrigin-RevId: 862362cd9336e5c1899dfaeeabac9f3da181ccf9
This commit is contained in:
+1
@@ -11,6 +11,7 @@ function HistoryToggleButton({ onClick }) {
|
|||||||
<MaterialIcon type="history" className="align-middle" />
|
<MaterialIcon type="history" className="align-middle" />
|
||||||
<p className="toolbar-label">{t('history')}</p>
|
<p className="toolbar-label">{t('history')}</p>
|
||||||
</button>
|
</button>
|
||||||
|
<div id="toolbar-cio-history" className="toolbar-cio-tooltip" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -11,6 +11,7 @@ function ShareProjectButton({ onClick }) {
|
|||||||
<MaterialIcon type="group_add" className="align-middle" />
|
<MaterialIcon type="group_add" className="align-middle" />
|
||||||
<p className="toolbar-label">{t('share')}</p>
|
<p className="toolbar-label">{t('share')}</p>
|
||||||
</button>
|
</button>
|
||||||
|
<div id="toolbar-cio-share" className="toolbar-cio-tooltip" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -25,6 +25,7 @@ function TrackChangesToggleButton({
|
|||||||
<MaterialIcon type="rate_review" className="align-middle" />
|
<MaterialIcon type="rate_review" className="align-middle" />
|
||||||
<p className="toolbar-label">{t('review')}</p>
|
<p className="toolbar-label">{t('review')}</p>
|
||||||
</button>
|
</button>
|
||||||
|
<div id="toolbar-cio-review" className="toolbar-cio-tooltip" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -248,6 +248,23 @@
|
|||||||
|
|
||||||
.toolbar-item {
|
.toolbar-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-cio-tooltip {
|
||||||
|
position: absolute;
|
||||||
|
top: var(--toolbar-height);
|
||||||
|
width: 391px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#toolbar-cio-history {
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
right: 10px;
|
||||||
|
|
||||||
|
/* The iframe a message renders in isn't aware of the page width, so we
|
||||||
|
make it 1px narrower to enable max-width media queries */
|
||||||
|
width: 390px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user