@@ -119,33 +119,32 @@ ui_front_page <- function(id, ...) {
119119 ns <- NS(id )
120120
121121 tagList(
122- include_css_files(" custom" ),
123122 tags $ div(
124123 id = " front_page_content" ,
125- class = " ml-8 " ,
124+ style = " margin-left: 2rem; " ,
126125 tags $ div(
127126 id = " front_page_headers" ,
128127 get_header_tags(args $ header_text )
129128 ),
130129 tags $ div(
131130 id = " front_page_tables" ,
132- class = " ml-4 " ,
131+ style = " margin-left: 2rem; " ,
133132 get_table_tags(args $ tables , ns )
134133 ),
135134 tags $ div(
136135 id = " front_page_custom_html" ,
137- class = " my-4 " ,
136+ style = " margin-left: 2rem; " ,
138137 args $ additional_tags
139138 ),
140139 if (length(args $ datanames ) > 0L ) {
141140 tags $ div(
142141 id = " front_page_metabutton" ,
143- class = " m-4 " ,
142+ style = " margin: 1rem; " ,
144143 actionButton(ns(" metadata_button" ), " Show metadata" )
145144 )
146145 },
147146 tags $ footer(
148- class = " . small" ,
147+ class = " small" ,
149148 get_footer_tags(args $ footnotes )
150149 )
151150 )
@@ -228,7 +227,7 @@ get_table_tags <- function(tables, ns) {
228227 tableOutput(ns(paste0(" table_" , idx )))
229228 )
230229 }))
231- return ( table_tags )
230+ table_tags
232231}
233232
234233get_footer_tags <- function (footnotes ) {
@@ -255,11 +254,11 @@ convert_metadata_to_dataframe <- function(raw_metadata, datanames) {
255254 if (is.null(metadata )) {
256255 return (data.frame (Dataset = character (0 ), Name = character (0 ), Value = character (0 )))
257256 }
258- return ( data.frame (
257+ data.frame (
259258 Dataset = dataname ,
260259 Name = names(metadata ),
261260 Value = unname(unlist(lapply(metadata , as.character )))
262- ))
261+ )
263262 }, raw_metadata , datanames , SIMPLIFY = FALSE )
264263 do.call(rbind , output )
265264}
0 commit comments