Skip to content

Commit eb9b8e8

Browse files
committed
improve display of long page titles on small screens
closes #446
1 parent 085934e commit eb9b8e8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
```
2626
- New icons (see [tabler icons 3.10](https://tabler.io/changelog))
2727
- Updated apexcharts.js to [v3.50.0](https://github.com/apexcharts/apexcharts.js/releases/tag/v3.50.0)
28-
28+
- Improve truncation of long page titles
29+
- ![screenshot long title](https://github.com/lovasoa/SQLpage/assets/552629/9859023e-c706-47b3-aa9e-1c613046fdfa)
2930
## 0.24.0 (2024-06-23)
3031
- in the form component, searchable `select` fields now support more than 50 options. They used to display only the first 50 options.
3132
- ![screenshot](https://github.com/lovasoa/SQLpage/assets/552629/40571d08-d058-45a8-83ef-91fa134f7ce2)

sqlpage/templates/shell.handlebars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@
6666
{{#if (or (or title (or icon image)) menu_item)}}
6767
<header id="sqlpage_header">
6868
<nav class="navbar navbar-expand-md navbar-light{{#if fixed_top_menu}} fixed-top{{/if}}">
69-
<div class="container-fluid">
70-
<a class="navbar-brand flex-grow-1 overflow-hidden" href="{{#if link}}{{link}}{{else}}/{{/if}}">
69+
<div class="container-fluid gap-2">
70+
<a class="navbar-brand" href="{{#if link}}{{link}}{{else}}/{{/if}}">
7171
{{#if image}}
7272
<img src="{{image}}" alt="{{title}}" width="32" height="32"
7373
class="navbar-brand-image">
7474
{{/if}}
7575
{{#if icon}}
7676
{{~icon_img icon~}}
7777
{{/if}}
78-
<h1 class="mb-0 w-0 fs-2">{{title}}</h1>
7978
</a>
79+
<h1 class="mb-0 fs-2 text-truncate">{{title}}</h1>
8080
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
8181
data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false"
8282
aria-label="Toggle navigation">

0 commit comments

Comments
 (0)