News for hackers. Stuff that matters.
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by snapscape on Tuesday November 13, 2018 @01:04PM (#18443139)
I discovered this a few days ago, and have already used it a few times. Seems to be a lot easier to use than other generators. The only problem I've had is when you add prefixes to the grid names, and then create a CodePen, the prefixes don't show up in the CodePen.
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by loarabia on Tuesday November 13, 2018 @01:31PM (#18443412)
Edge fails in the below code on TrimEnd with this message

Microsoft Edge 44.17763.1.0

Object doesn't support property or method 'trimEnd'

: function createTemplateArr(number) { return '1fr ' .repeat(number) .trimEnd() .split(' ') }

MDN's compat chart doesn't make clear if Edge supports this or not but manual experimentation suggests not although trimRight is supported so a possible polyfill. I filed a bug against Edge just now.

Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by tomtimtall on Tuesday November 13, 2018 @12:49PM (#18442982)
Chrome iPhone, just seeing purple nothing else.
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by iandev on Thursday November 15, 2018 @10:53AM (#18460209)
On Safari 11.1.1 TypeError: "1fr ".repeat(e).trimEnd is not a function.
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by mfontani on Tuesday November 13, 2018 @12:25PM (#18442742)
> TypeError: "1fr ".repeat(...).trimEnd is not a function

Firefox 60 ESR

Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by jwatt on Tuesday November 13, 2018 @01:15PM (#18443258)
That function was added in Firefox 61: https://bugzilla.mozilla.org/show_bug.cgi?id=1434007
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by BobRun on Tuesday November 13, 2018 @04:38PM (#18445165)
Firefox on UBUNTU , there is nothing to see.
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by daze42 on Tuesday November 13, 2018 @01:13PM (#18443227)
Seems to break if the names have spaces
Re:Show HN: Rebuilt My CSS Grid Generator with Vue.js by gitgud on Tuesday November 13, 2018 @04:01PM (#18444865)
Chrome Android, cannot add text