Closed RizkyRajitha closed 2 years ago
currently link tree max width is hard corded to 320px
320px
https://github.com/RizkyRajitha/linkin/blob/f01563149814ed9bb987ef5a0e55a7eac56e7670/components/linkinthebiopage.js#L116
it should be dynamically changed using the dashboard.
The new form input for width should be under the General tab in the dashboard
tentative workflow
number
and register it with the react-form-hook register method passed pageWidth . (refer the existing implementation)
register
pageWidth
pagedata
String? @db.VarChar
https://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/prisma/schema.prisma#L26 .
migrate the modified prisma schema prisma doc . (when migration dev you will need permission to create databases , if such problem occurs use docker postgres instance ).
destructure the new pageWidth variable and the pass it to the styles https://github.com/RizkyRajitha/linkin/blob/f01563149814ed9bb987ef5a0e55a7eac56e7670/components/linkinthebiopage.js#L116
test whether everything works.
I can do it.
hi @rajdama , can you please elaborate more on your comment.
currently link tree max width is hard corded to
320px
https://github.com/RizkyRajitha/linkin/blob/f01563149814ed9bb987ef5a0e55a7eac56e7670/components/linkinthebiopage.js#L116
it should be dynamically changed using the dashboard.
The new form input for width should be under the General tab in the dashboard
tentative workflow
number
typehttps://github.com/RizkyRajitha/linkin/blob/f01563149814ed9bb987ef5a0e55a7eac56e7670/components/genaralform.js#L97
and register it with the react-form-hook
register
method passedpageWidth
. (refer the existing implementation)pagedata
relation in prisma with namepageWidth
and typeString? @db.VarChar
https://github.com/RizkyRajitha/linkin/blob/4f982b43707c20e8c55e7a98d5e800cdaae5199e/prisma/schema.prisma#L26 .
migrate the modified prisma schema prisma doc . (when migration dev you will need permission to create databases , if such problem occurs use docker postgres instance ).
destructure the new
pageWidth
variable and the pass it to the styleshttps://github.com/RizkyRajitha/linkin/blob/f01563149814ed9bb987ef5a0e55a7eac56e7670/components/linkinthebiopage.js#L116
test whether everything works.