fix(ui): position highlight FAB button relative to article pane, not viewport

This commit is contained in:
Gigi
2025-10-09 21:23:21 +01:00
parent bc5fe1ae30
commit 8a21b46ebd
2 changed files with 9 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ export const HighlightButton = React.forwardRef<HighlightButtonRef, HighlightBut
<button <button
className="highlight-fab" className="highlight-fab"
style={{ style={{
position: 'fixed', position: 'absolute',
bottom: '32px', bottom: '32px',
right: '32px', right: '32px',
zIndex: 1000, zIndex: 1000,

View File

@@ -101,7 +101,7 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
settings={props.settings} settings={props.settings}
/> />
</div> </div>
<div className="pane main"> <div className="pane main" style={{ position: 'relative' }}>
{props.showSettings ? ( {props.showSettings ? (
<Settings <Settings
settings={props.settings} settings={props.settings}
@@ -138,6 +138,13 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
settings={props.settings} settings={props.settings}
/> />
)} )}
{props.hasActiveAccount && (
<HighlightButton
ref={props.highlightButtonRef}
onHighlight={props.onCreateHighlight}
highlightColor={props.settings.highlightColor || '#ffff00'}
/>
)}
</div> </div>
<div className="pane highlights"> <div className="pane highlights">
<HighlightsPanel <HighlightsPanel
@@ -160,13 +167,6 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
/> />
</div> </div>
</div> </div>
{props.hasActiveAccount && (
<HighlightButton
ref={props.highlightButtonRef}
onHighlight={props.onCreateHighlight}
highlightColor={props.settings.highlightColor || '#ffff00'}
/>
)}
<RelayStatusIndicator relayPool={props.relayPool} /> <RelayStatusIndicator relayPool={props.relayPool} />
{props.toastMessage && ( {props.toastMessage && (
<Toast <Toast