Bram's Dev Blog

home

100 Days of Code Day 52 - DSpace 7 Language

15 Oct 2018

Disabling activated languages

To render an X to delete a language, as part of the unordered list (ul), li element with delete image on right with css put me on the right path.

The code example add and remove items to a list reminded me to use a font awesome icon instead of writing a text X myself.

The icon wasn’t aligned with the middle of the text and vertical align: middle wasn’t working. In How to center text vertically with a large font-awesome icon?, I leared that if an element isn’t aware of the line height, line-height inherit can fix it.

Width of the dropdown relative to the label of the authentication message

When certain language names get too long in a particular language, the X button is being pushed to the second line, like is happening here:

X button moving to the line below

I tried to fix this by playing with the min-width value of the dropdown menu, which seemed to work to some extent.

.dropdown-menu {
  min-width: 14rem;
}

Min-width fix on the dropdown menu

But when the text on the login button gets too short, the side effect is that the x symbols are no longer visible at all.

Login label too short

Bonus

Figured out how to work with images in this blog. The trick to resize them though with =100x at the end of the URL and the relative paths didn’t work yet though.

Day 53 Plan

The action on the x button doesn’t work at the moment. It likely requires me to work with observables and subscribe to them, in order to have this work. Will try to get the button to actually work.

Future days - DSpace 7 Angular

Future days - Analyzer.atmire.com work

Future Days - Productivity

Future days - Jekyll http://bram-atmire.github.io/ site

Future Days - Atmire.com work

Investigate and work on search engine optimization (SEO) for the main atmire.com website.

Future Days - Learning just for learning

September sustainability challenge - Completed

The money has been wired and I’m closing the books on the September sustainability challenge where I was sponsored for every successful day and where I would punish myself for every missed day.

New sustainability challenge - Finish before Christmas

With today being day 43, there are 57 days of coding left. Setting the goal to get there before Dec 25th gives me a little more flexibility while still requiring a high frequency.

In terms of positive motivator, I’m currently thinking along the lines of a big reward at the end, while at the same time still wondering about something more incremental for Oct/Nov, or to have a self-punishment system in here as well.