Addons-server: Separator line is not properly placed on Theme Generator page

Created on 26 Jan 2018  路  10Comments  路  Source: mozilla/addons-server

Steps to reproduce:

  1. Load AMO dev and go to Developer Hub to submit a new add-on.
  2. Use "Create a Theme Version" wizard to submit a static theme.
  3. Scroll down and observe the separator line displayed below Browser Preview.

Expected result:
The separator line has approximately the lenght of the image and it is displayed at a visible distance.

Actual result:
The separator line extends beyond the image and it is placed right under the image.

Notes:
This issue was verified on AMO dev (Win10)

separator line

I attached a screenshot with the Preview displayed for Lightweight Themes.

lightweight themes

devhub themes assigned p3 verified fixed triaged bug

All 10 comments

Hi there, I would like to work on this bug if it's still available!

I was trying to recreate the issue on my local machine but I'm only able to find this webpage for submitting a new theme. I don't think that's what I need to be looking for - where would I find the "Create a Theme Version" wizard?

@SeanPrashad : this is the new static theme wizard, it's currently behind a switch that is not activated in prod or your local environment. To enable it locally, run:
docker-compose exec web bash ./manage.py waffle_switch allow-static-theme-uploads on

Then in Developer Hub, select "Create a New Add-on" (not "Submit a New Theme"), and then "Create a theme". You should see the wizard.

Thanks for that heads up @diox! Unfortunately, when I try to run that command, I get the following error:

screen shot 2018-02-20 at 9 30 20 am

Console:

docker-compose exec web bash ./manage.py waffle_switch allow-static-theme-uploads on
./manage.py: line 2: import: command not found
./manage.py: line 3: import: command not found
./manage.py: line 7: syntax error near unexpected token `'DJANGO_SETTINGS_MODULE','
./manage.py: line 7: `    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')'

Should I try and edit the manage.py file myself?

sorry, remove the extra bash in the command I gave you.

It should be docker-compose exec web ./manage.py waffle_switch allow-static-theme-uploads on

Still doesn't look like it's working 馃槥:

screen shot 2018-02-20 at 11 54 04 am

Is there documentation anywhere that I could look over to see all of these commands to enable debug settings?

Welp. Add --create to that command, that should fix it.

It worked! I used this command: docker-compose exec web ./manage.py waffle_switch allow-static-theme-uploads on --create

~Looks like I've identified the culprit using Chrome dev tools to a ul element with a class of errorlist validator (CSS found in zamboni.css:66):~

screen shot 2018-02-23 at 10 34 29 pm

~How far down do you think the separator should be? I currently have margin-top: 5 px; but I'll play around with it a bit more.~

Edit: Very sure that I've found it now! See below:

screen shot 2018-02-23 at 10 55 19 pm

Turns out it was the item class with it's CSS found in main.css:2115 - stay tuned for my PR!

Verified fixed on AMO dev with FF58 (Win10).

browser preview sepline

Was this page helpful?
0 / 5 - 0 ratings