Skip to content

Commit

Permalink
Fix display of long titles in the shell component.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Oct 18, 2023
1 parent 70ab3e1 commit b712267
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG.md

## unreleased

- Fix display of long titles in the shell component.

## 0.14.0 (2023-10-19)

- Better support for time series in the [chart](https://sql.ophir.dev/documentation.sql?component=chart#component) component. You can now use the `time` top-attribute to display a time series chart
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqlpage"
version = "0.14.0"
version = "0.15.0"
edition = "2021"
description = "A SQL-only web application framework. Takes .sql files and formats the query result using pre-made configurable professional-looking components."
keywords = ["web", "sql", "framework"]
4 changes: 2 additions & 2 deletions sqlpage/templates/shell.handlebars
Original file line number Diff line number Diff line change
@@ -42,15 +42,15 @@
{{#if title}}
<nav class="navbar navbar-expand-md navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="{{#if link}}{{link}}{{else}}/{{/if}}">
<a class="navbar-brand flex-grow-1 overflow-hidden" href="{{#if link}}{{link}}{{else}}/{{/if}}">
{{#if image}}
<img src="{{image}}" alt="{{title}}" width="32" height="32"
class="navbar-brand-image">
{{/if}}
{{#if icon}}
{{~icon_img icon~}}
{{/if}}
{{title}}
<h1 class="mb-0 w-0 fs-2">{{title}}</h1>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false"

0 comments on commit b712267

Please sign in to comment.