Update app.R
Browse files
app.R
CHANGED
|
@@ -110,35 +110,38 @@ ui <- dashboardPage(
|
|
| 110 |
/* Responsive map container */
|
| 111 |
.map-container {
|
| 112 |
height: 70vh;
|
|
|
|
| 113 |
}
|
| 114 |
@media (max-width: 768px) {
|
| 115 |
.map-container {
|
| 116 |
-
height:
|
| 117 |
}
|
| 118 |
}
|
| 119 |
"))
|
| 120 |
),
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
|
|
|
| 125 |
box(
|
| 126 |
-
width =
|
| 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 |
-
|
|
|
|
| 137 |
box(
|
| 138 |
-
width =
|
| 139 |
title = strong("Selected Country Data"),
|
| 140 |
solidHeader = TRUE,
|
| 141 |
-
uiOutput("selectedCountryData")
|
|
|
|
| 142 |
)
|
| 143 |
)
|
| 144 |
)
|
|
|
|
| 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 |
)
|