'My uiOutput is not showing properly in Shiny App

I pretend to upload an excel file and get to choose between the sheets of that file. It is working perfectly but for some reason the name of the sheets is not taking up the whole space and doing this weird thing:

Wrong display of name of sheets

The part of the script where I establish it is:

  ...
sidebarLayout(
sidebarPanel(
  column(4, fileInput("file2", "Select file (.xls/.xlsx)",
            accept = c(".xls",".xlsx")
  )),
  column(8, uiOutput("name_of_my_sheets", style='padding:6px; font-size:80%; position:relative')),

I tried many things like columning and positioning it differently but can´t get it to work. When I use half of my screen to test de app, it works well.

Right display of name of sheets

I cannot post the whole code for confidential issues unluckily but be happily prone to answer any questions. Thank you in advance!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source