@@ -67,7 +67,9 @@ let[@react.component] make
6767 ~props:
6868 ({current_user; logged_in_users; csrf_token; authorized_apps; devices} :
6969 props ) () =
70- <div className="w-auto h-full px-4 sm:px-0 pt-16 mx-auto flex flex-col md:flex-row gap-12">
70+ <div
71+ className="w-auto h-full max-w-full px-4 sm:px-0 pt-16 mx-auto flex \
72+ flex-col md:flex-row gap-12">
7173 <AccountSidebar
7274 current_user logged_in_users active_page="/account/permissions"
7375 />
@@ -87,17 +89,24 @@ let[@react.component] make
8789 <ul className="space-y-2">
8890 ( List.map
8991 (fun (app : authorized_app) ->
92+ let name = Option.value app.client_name ~default:app.client_host in
9093 <li key=app.client_id className="flex items-center gap-x-2">
91- <span className="font-serif text-mana-100">
92- (string
93- (Option.value app.client_name
94- ~default:app.client_host ) )
94+ <span
95+ title=name
96+ className="flex-1 max-w-fit font-serif text-mana-100 \
97+ truncate">
98+ (string name)
9599 </span>
96100 ( match app.client_name with
97101 | Some _ ->
98- <span className="text-mist-80">
99- (string ("(" ^ app.client_host ^ ")"))
100- </span>
102+ array
103+ [| <span className="text-mist-80">(string "-")</span>
104+ ; <span
105+ title=app.client_host
106+ className="flex-2 max-w-fit block \
107+ text-mist-80 truncate">
108+ (string app.client_host)
109+ </span> |]
101110 | None ->
102111 null )
103112 <span className="text-mist-80">(string "-")</span>
@@ -112,7 +121,7 @@ let[@react.component] make
112121 formMethod="post"
113122 name="action"
114123 value="revoke_app"
115- className="text-mist-100 underline \
124+ className="text-mist-100 underline whitespace-nowrap \
116125 hover:text-mana-100">
117126 (string "revoke access")
118127 </button>
@@ -138,7 +147,7 @@ let[@react.component] make
138147 let key = device.last_ip ^ "-" ^ string_of_int i in
139148 <li key className="flex flex-col">
140149 <div className="flex items-center gap-x-2">
141- <span className="font-serif text-mana-100">
150+ <span className="font-serif text-mana-100 truncate ">
142151 (string (parse_user_agent device.last_user_agent))
143152 </span>
144153 ( if device.is_current then
@@ -165,13 +174,13 @@ let[@react.component] make
165174 formMethod="post"
166175 name="action"
167176 value="sign_out_device"
168- className="text-mist-100 underline \
177+ className="text-mist-100 underline whitespace-nowrap \
169178 hover:text-mana-100">
170179 (string "sign out")
171180 </button>
172181 </form>
173182 </div>
174- <span className="text-sm text-mist-80">
183+ <span className="text-sm text-mist-80 truncate ">
175184 (string
176185 ( "Last active " ^ device.last_refreshed_at
177186 ^ {js| · |js} ^ device.last_ip ) )
0 commit comments