cjerzak commited on
Commit
07bfac5
·
verified ·
1 Parent(s): 05b06c4

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +14 -11
app.R CHANGED
@@ -109,36 +109,39 @@ ui <- dashboardPage(
109
  }
110
  /* Responsive map container */
111
  .map-container {
112
- height: 70vh; /* Default height for desktop */
 
113
  }
114
  @media (max-width: 768px) {
115
  .map-container {
116
- height: 50vh; /* Taller height for mobile and tablets */
117
  }
118
  }
119
  "))
120
  ),
121
- tabItems(
122
- tabItem(
123
- tabName = "cartogramTab",
124
- fluidRow(
 
125
  box(
126
- width = 12,
127
  title = strong("Global Leadership Project (GLP)"),
128
  solidHeader = TRUE,
129
  div(
130
  class = "map-container",
131
- style = "padding: 10px;", # Keep padding, height is set via CSS
132
  girafeOutput("cartogramPlot", width = "100%", height = "100%")
133
  )
134
  )
135
  ),
136
- fluidRow(
 
137
  box(
138
- width = 12,
139
  title = strong("Selected Country Data"),
140
  solidHeader = TRUE,
141
- uiOutput("selectedCountryData")
 
142
  )
143
  )
144
  )
 
109
  }
110
  /* Responsive map container */
111
  .map-container {
112
+ height: 70vh;
113
+ width: 100%;
114
  }
115
  @media (max-width: 768px) {
116
  .map-container {
117
+ height: 50vh;
118
  }
119
  }
120
  "))
121
  ),
122
+ tabItem(
123
+ tabName = "cartogramTab",
124
+ fluidRow(
125
+ column(
126
+ width = 9,
127
  box(
128
+ width = NULL,
129
  title = strong("Global Leadership Project (GLP)"),
130
  solidHeader = TRUE,
131
  div(
132
  class = "map-container",
 
133
  girafeOutput("cartogramPlot", width = "100%", height = "100%")
134
  )
135
  )
136
  ),
137
+ column(
138
+ width = 3,
139
  box(
140
+ width = NULL,
141
  title = strong("Selected Country Data"),
142
  solidHeader = TRUE,
143
+ uiOutput("selectedCountryData"),
144
+ style = "overflow-y: auto;" # Scroll if content overflows
145
  )
146
  )
147
  )