this post was submitted on 24 May 2024
2 points (100.0% liked)

Perchance - Create a Random Text Generator

483 readers
3 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 2 years ago
MODERATORS
 

Note to everyone who used my Power Tabs Plugin before, if you ever had so many tabs on your tabs plugin and having an overlapping text issue on the plugin like this:

I've recently mitigated about the issue, and well, there's now a very handy solution to this! You can use some HTML styling, by setting a fixed width across all the tabs like this:

<style>
  ._powerTabs td {
    width: 150px;
  }
</style>

This will make all the tabs in your generator adjust its width beyond its technical limits, and thus will make the top part scrollable if those tab heads' widths occupy more than the entire width of the tab container.

Some notes:

  • You can just put the HTML snippet above anywhere in the HTML panel or put the innerHTML of it into your already existing style element if you have one.
  • You can see the fix in action in this example I just made.
  • This fix will apply to all the tab containers in your generator if you have more than one of them, like on this example. If you want the fix to apply only on certain tabs, you'd need to wrap the [tab(...)] thing that outputs the tabs plugin into a div or a p element like this: <p class="myTab">[tabs(...)]</p> and then give a class on it, and then you can insert a different HTML styling like this:
<style>
  .myTab ._powerTabs td {
    width: 150px;
  }
</style>
  • If you want to set the tab to be wider, you can change the width to a larger number like 200px, 225px, 250px, and so on.

I've just updated the plugin with a small addition of adding a special class to the outer layer of the tab container, so you'll be able to do this fix by yourself and, in addition, do some advanced CSS styling on the plugin (which you'll be able to do through the lists soon!)


Additional info worth to mention: If you have the wordwrap option set to wrap in your tabs, the tab heads will adjust to the minimum width needed to fit on to the titles, but not adjusting to its fixed width. If that fix doesn't work, try replacing the width part after ._powerTabs td { with min-width so the tab heads will explicitly adjust to their minimum width.

You can actually apply the wordwrap = wrap behavior only for the tab content without affecting the tab heads so the fix above will still work:

  ._powerTabs > div > div {
    word-wrap: break-word;
  }
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here