# CSS to wrap page title/action-bar on small screens

**URL:** <https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245>\
**Category:** General\
**Created:** [February 24, 2024, 4:30pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245 "2024-02-24T16:30:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdiercks](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jdiercks/32/197_2.png) [@jdiercks](https://community.silverbullet.md/u/jdiercks)\
**Post date:** [February 24, 2024, 4:30pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/1 "2024-02-24T16:30:00Z")

</div>

On small screens, if the total width of the page title plus the action bar icons is wider than the screen, the title is clipped. On very small screens with a half-dozen or so action bar icons, this makes the title complete hidden.

I’ve been fiddling with STYLES trying to make it wrap, so that the title and action bar will appear on separate lines if needed, but my css-fu is not quite there yet. Any suggestions?

---

<div class="post-metadata">

**Author:** ![joekrill](https://community.silverbullet.md/user_avatar/community.silverbullet.md/joekrill/32/170_2.png) [@joekrill](https://community.silverbullet.md/u/joekrill)\
**Post date:** [February 24, 2024, 5:00pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/2 "2024-02-24T17:00:00Z")

</div>

Try this - seems to work for me:

```css
#sb-top {
    height: auto !important;
}

#sb-top .main #sb-current-page {
    width: auto !important;

    /* adjust this as needed - minimum with for the current page name/input */
    min-width: 5em;
}

#sb-top .main .inner .wrapper {
    display: flex;
    flex-wrap: wrap;
}

#sb-top .sb-actions {
    position: relative;
    right: initial;
    top: initial;
    text-align: initial;
}

```

---

<div class="post-metadata">

**Author:** ![jdiercks](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jdiercks/32/197_2.png) [@jdiercks](https://community.silverbullet.md/u/jdiercks)\
**Post date:** [February 24, 2024, 5:37pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/3 "2024-02-24T17:37:15Z")

</div>

Perfect! Thanks Joe. Nicely done.

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [February 24, 2024, 7:13pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/4 "2024-02-24T19:13:35Z")

</div>

I’ve been thinking of introducing a second row configurable button bar along the full width of the top of the screen for mobile. I too find that there’s a bunch of potentially useful buttons I’d like to have on a touch screen, but not enough space right now.

Thoughts?

---

<div class="post-metadata">

**Author:** ![zamuz](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/z/eada6e/32.png) [@zamuz](https://community.silverbullet.md/u/zamuz)\
**Post date:** [February 24, 2024, 9:46pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/5 "2024-02-24T21:46:23Z")

</div>

> [@zef](#):
>
> I’ve been thinking of introducing a second row configurable button bar along the full width of the top of the screen for mobile.

Sounds good! Maybe also have the option to pin the toolbar to the bottom of the screen, for thumb reachability.

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [February 24, 2024, 10:01pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/6 "2024-02-24T22:01:13Z")

</div>

Sadly that’s technically almost impossible to do, at least on iOS I think. Although I’ve noticed that Discourse somehow seems to have this working so who knows.

---

<div class="post-metadata">

**Author:** ![jdiercks](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jdiercks/32/197_2.png) [@jdiercks](https://community.silverbullet.md/u/jdiercks)\
**Post date:** [February 24, 2024, 11:07pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/7 "2024-02-24T23:07:50Z")

</div>

A second row of action icons at top of page could mostly be done right now with a Widget, right? Although a shorthand for grabbing feathericons in that context would be helpful.

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [February 25, 2024, 9:49pm UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/8 "2024-02-25T21:49:48Z")

</div>

I’ve noticed that discourse does adjust the edit box size and has such a bar. It can actually be doable

[https://www.perplexity.ai/search/How-does-discourse-fAaGFaPeQayYyjaRBnxWkA](https://www.perplexity.ai/search/How-does-discourse-fAaGFaPeQayYyjaRBnxWkA)

---

<div class="post-metadata">

**Author:** ![devzero](https://community.silverbullet.md/user_avatar/community.silverbullet.md/devzero/32/103_2.png) [@devzero](https://community.silverbullet.md/u/devzero)\
**Post date:** [February 26, 2024, 1:22am UTC](https://community.silverbullet.md/t/css-to-wrap-page-title-action-bar-on-small-screens/245/9 "2024-02-26T01:22:47Z")

</div>

I like how Obsidian’s mobile app has a button row above the keyboard that is scrollable. One thing we could do is map commands w/ icons to it (like the buttons up top). Additional pain points I’ve hit on mobile:

- No undo ability
- back-tick requires three clicks and a long hold
