Skip to content

Commit 6a2a967

Browse files
authored
Improve style of Superfacility API card (#445)
1 parent b7a1b75 commit 6a2a967

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

dashboard/sfapi_manager.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,25 @@ def load_sfapi_card():
114114
with vuetify.VCardText():
115115
# row with component to upload input file
116116
with vuetify.VRow():
117-
vuetify.VFileInput(
118-
v_model=("sfapi_key_dict",),
119-
label="Key File (pem format, must include client ID in first line)",
120-
accept=".pem",
121-
__properties=["accept"],
122-
)
117+
with vuetify.VCol():
118+
vuetify.VFileInput(
119+
v_model=("sfapi_key_dict",),
120+
label="Key File (pem format, must include client ID in first line)",
121+
accept=".pem",
122+
prepend_icon="",
123+
prepend_inner_icon="mdi-paperclip",
124+
hide_details=True,
125+
style="cursor: pointer",
126+
__properties=["accept"],
127+
)
123128
# row with text field to display key expiration date
124129
with vuetify.VRow():
125130
with vuetify.VCol():
126131
vuetify.VTextField(
127132
v_model=("sfapi_key_expiration",),
128133
label="Key Expiration (if expired or unavailable, please upload a valid key)",
129134
readonly=True,
135+
hide_details=True,
130136
)
131137
# row with text field to display Perlmutter status
132138
with vuetify.VRow():
@@ -135,4 +141,5 @@ def load_sfapi_card():
135141
v_model=("perlmutter_description",),
136142
label="Perlmutter Status",
137143
readonly=True,
144+
hide_details=True,
138145
)

0 commit comments

Comments
 (0)