OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Display python access example not as one liner #1646

Open ebroda opened 1 month ago

ebroda commented 1 month ago

Description of the issue

Currently the Python example for using the data is shown as a one liner, even though the source has line breaks.

grafik

Or is this wanted? Else you should consider decrease the amount of rows.

If you want to have everything marked at one, consider include onclick="this.select()"

Steps to Reproduce

  1. Open any database item, e.g. https://openenergy-platform.org/dataedit/view/boundaries/bkg_gn250_b

Ideas of solution

Increase rows by one, remove white-space: nowrap;

Consider removing also resize: none; cause if necessary people should be able to increase the field size

see code in referenced commit. If you agree, you might directly merge or I'll create a pull request out of it.

Context and Environment

Workflow checklist

jh-RLI commented 1 month ago

Good input! We are currently in the process of implementing an updated sidebar for the detail page of the tables.

it will look similar to this mockup: image

As you can see, we will hide this field by default and I also assume @bmlancien will update the associated styles and possibly avoid the inline CSS. We haven't really talked about how the code in the api window should look when "view" is clicked, so your comment here is perfect timing.

jh-RLI commented 2 weeks ago

This is now implemented in develop branch, expect for the URL part. image