Skip to content

Commit

Permalink
Prevent view info from covering buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 27, 2025
1 parent 6bb9a3c commit fc7b1af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frontend/viewer/src/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
{/if}
<div class="w-[15vw] collapsible-col sm-form:w-min" class:self-center={$state.rightToolbarCollapsed} class:lg-view:collapse-col={expandList} class:!w-min={$state.rightToolbarCollapsed}>
{#if $selectedEntry}
<div class="contents" class:lg-view:hidden={expandList}>
<div class="sm-form:flex flex-col" class:lg-view:hidden={expandList} class:lg-view:flex={$state.rightToolbarCollapsed}>
<div class="h-full flex flex-col gap-4 justify-stretch">
<div class="grid gap-4 auto-rows-fr sm-form:gap-2 sm-form:icon-button-group-container" class:!gap-2={$state.rightToolbarCollapsed} class:icon-button-group-container={$state.rightToolbarCollapsed}>
<div class="contents" use:asScottyPortal={'right-toolbar'}></div>
Expand All @@ -408,11 +408,14 @@
<Toc entry={$selectedEntry} />
</div>
</div>
<span class="sm-view:hidden text-surface-content whitespace-nowrap bg-surface-100/75 text-sm absolute -bottom-4 -right-4 p-2 inline-flex gap-2 text-end items-center">
{$currentView.label}
<span class="text-surface-content whitespace-nowrap bg-surface-100/75 !pt-2 text-sm lg-form:absolute -bottom-4 -right-4 inline-flex gap-2 text-end items-center"
class:lg-form:!static={$state.rightToolbarCollapsed} class:lg-form:p-2={!$state.rightToolbarCollapsed}>
<span class="contents sm-form:hidden" class:hidden={$state.rightToolbarCollapsed}>
{$currentView.label}
</span>
<Button
on:click={() => (showOptionsDialog = true)}
size="sm"
size="md"
variant="default"
iconOnly
icon={mdiEyeSettingsOutline} />
Expand Down
1 change: 1 addition & 0 deletions frontend/viewer/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = {
// Breakpoints for the entry form aka editor
'xs-form': {'max': '800px'},
'sm-form': {'max': '1279px'},
'lg-form': {'min': '1280px'},

// Breakpoints for the project view layout
'sm-view': { 'max': '800px' },
Expand Down

0 comments on commit fc7b1af

Please sign in to comment.