Skip to content

Commit

Permalink
adjust padding and truncate app bar subtitle text if too long
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 22, 2024
1 parent 3d996aa commit 34bdc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
</div>

<!-- title and subtitle -->
<div class="my-auto mr-auto">
<div class="my-auto mr-auto overflow-hidden">
<div class="font-bold">{{ title }}</div>
<div v-if="subtitle != null" class="text-sm">{{ subtitle }}</div>
<div v-if="subtitle != null" class="text-sm truncate">{{ subtitle }}</div>
</div>

<!-- optional: trailing -->
<div class="flex my-auto mr-2">
<div class="flex my-auto mx-2">
<slot name="trailing"/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/NodeTraceRoutesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</template>
<template v-slot:trailing>
<RouterLink v-if="node" :to="{ name: 'node.traceroutes.run', params: { nodeId: node.num }}">
<IconButton class="mx-2 bg-transparent text-gray-700">
<IconButton class="bg-transparent text-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
</svg>
Expand Down

0 comments on commit 34bdc81

Please sign in to comment.